LinuxCommandLibrary

git-bundle

Create and manipulate portable bundle files

TLDR

Create bundle of entire repository

$ git bundle create [repo.bundle] --all
copy
Create bundle of branch
$ git bundle create [branch.bundle] [branch]
copy
Create bundle since commit
$ git bundle create [recent.bundle] [commit]..HEAD
copy
Verify bundle
$ git bundle verify [repo.bundle]
copy
Clone from bundle
$ git clone [repo.bundle] [directory]
copy
List bundle contents
$ git bundle list-heads [repo.bundle]
copy

SYNOPSIS

git bundle command [options] [refs]

DESCRIPTION

git bundle creates and manipulates bundle files for transferring repository data offline. Bundles are portable binary archives containing Git objects and references, functioning as standalone repository snapshots.
The primary use case is sharing repository data without network access, such as air-gapped environments or slow connections. Bundles can contain entire repositories or specific branches and commit ranges. They act as read-only remotes when cloned or fetched from.
Unlike archives, bundles preserve Git history and can be incrementally fetched from. They're verified cryptographically to ensure data integrity. Common workflows include creating bundles on one machine, physically transferring them, and cloning or fetching on another machine.

PARAMETERS

--all

Include all refs.

SUBCOMMANDS

create

Create a bundle.
verify
Verify a bundle.
list-heads
List references.
unbundle
Extract objects.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community