Move Repositories Offline With git bundle
Pack an entire repository, including history, into a single file.
Run git bundle create repo.bundle --all to package every ref into one file.
01Command
Command
$ git bundle create repo.bundle --all02What it does
A bundle is a single file that another machine can clone or fetch from, which is ideal for air-gapped networks and archival backups. It carries full history and can be verified with git bundle verify.
03Risk
!Warning: A bundle captures refs but not untracked files, hooks or configuration; pair it with other backups for a full copy.
04Undo
✓No undo needed — this command does not change persistent state.
05Sources
- git-bundle documentationEvidence: Documents git bundle, which packages refs and objects into one file.
Last verified: 2026-10-13 · Category: Developer
06Related solutions
List Local Time Machine Snapshots with tmutil
See every local APFS Time Machine snapshot on your startup disk and delete ones you no longer need.
Clone Folders with Full macOS Metadata Using ditto
The copy command that keeps Finder flags, ACLs, resource forks, and exact permissions intact.
Export and Import Preference Domains with defaults
Snapshot an entire app's settings to a plist file, then restore or migrate it later.