Intermediate LevelGit & GitHub
What is git bundle and how do you transfer repositories offline without network access?
❓ Interview Prompt: Explain git bundle create, packaging repository objects into single binary files, and cloning/fetching offline via USB drives.
git bundle packages Git objects and references into a single binary file, allowing repository transfers via USB drive without network access. Clone or fetch directly from the bundle file as if it were a remote server.
Code Implementation Example
bash
git bundle create repo-backup.bundle main
git bundle verify repo-backup.bundle
git clone repo-backup.bundle my-offline-repo💡Creating and cloning offline repository bundles using git bundle.
🎯 Interview Key Takeaway
Use git bundle create to package repository commits into a single binary file for air-gapped offline transfers.
#git bundle#Offline Transfer#Intermediate
Back to all Git & GitHub Questions→