{
  "slug": "git-bundle",
  "term": "Git bundle",
  "aliases": [
    "Git bundle file"
  ],
  "definition": "A Git bundle packages selected references and Git objects for transfer, optionally requiring prerequisite history in the receiving repository.",
  "note": "Recovery scope: a bundle can contain complete or incremental history for its selected refs. An incremental bundle requires the earlier objects it excludes; the uncommitted working tree is outside this history export. Inventory the selected refs and prerequisites rather than treating the file as an automatic capture of every local asset. [git-bundle]\n\nVerification boundary: in Git v2.43.0, bundle verify reads the header and checks prerequisites in the recipient. The command closes the file before verify_bundle; restoration separately passes the packed payload to index-pack. This implementation scope does not establish the behavior of every later version. [git-bundle-command] [git-bundle-unpack]\n\nMeasured control: a one-byte change to a complete bundle's pack-checksum trailer still passed bundle verify in an empty repository on Git 2.43.0, but cloning failed with a pack SHA-1 mismatch. The intact control restored expected content and passed full fsck. Verify prerequisites, unpack a disposable copy and compare expected content as separate acceptance steps. [hesela-git]\n\nHistory boundary: a depth-one Git 2.43.0 control created a bundle successfully but failed cloning it into an empty recipient. Matching tip refs and zero missing-object diagnostics did not establish historical coverage. This is a version-scoped observation, not a universal shallow-bundle result. [git-partial]\n\nGit LFS stores payloads separately from the pointer blobs in a bundle. Five synthetic Git 2.43.0 / LFS 3.4.1 controls passed full Git fsck even when required LFS content was missing or corrupted. The latest-only store passed default LFS checking but could not restore the old file. Preserve and test the required payload history separately. [lfs-pointer] [lfs-fsck] [lfs-evidence]",
  "status": "shipping",
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-10-28",
  "advantages": [
    "Supports transfer of selected committed history without a live remote server."
  ],
  "limitations": [
    "An incremental bundle is not self-contained without its prerequisite history.",
    "A verification result is scoped to the checks actually performed."
  ],
  "related": [
    "git-alternate-object-database",
    "incremental-backup",
    "backup-verification",
    "restore-test",
    "git-partial-clone"
  ],
  "citations": [
    {
      "id": "git-bundle",
      "title": "Git v2.43.0: bundle scope and prerequisites",
      "url": "https://github.com/git/git/blob/v2.43.0/Documentation/git-bundle.txt",
      "accessed": "2026-10-19"
    },
    {
      "id": "git-bundle-command",
      "title": "Git v2.43.0: bundle verify command implementation",
      "url": "https://github.com/git/git/blob/v2.43.0/builtin/bundle.c",
      "accessed": "2026-10-19"
    },
    {
      "id": "git-bundle-unpack",
      "title": "Git v2.43.0: prerequisite checks and index-pack during unbundling",
      "url": "https://github.com/git/git/blob/v2.43.0/bundle.c",
      "accessed": "2026-10-19"
    },
    {
      "id": "hesela-git",
      "title": "Hesela: Git backup dependency and verification controls",
      "url": "https://hesela.com/analyses/backup-verification-is-not-a-restore-test/#git-backup-closure",
      "accessed": "2026-10-19"
    },
    {
      "id": "git-partial",
      "title": "Hesela: Git partial-clone offline recovery controls",
      "url": "https://hesela.com/analyses/backup-verification-is-not-a-restore-test/#git-partial-closure",
      "accessed": "2026-10-23"
    },
    {
      "id": "lfs-pointer",
      "title": "Git LFS v3.4.1: pointer format",
      "url": "https://github.com/git-lfs/git-lfs/blob/v3.4.1/docs/spec.md",
      "accessed": "2026-10-28"
    },
    {
      "id": "lfs-fsck",
      "title": "Git LFS v3.4.1: revision and path scope of fsck",
      "url": "https://github.com/git-lfs/git-lfs/blob/v3.4.1/docs/man/git-lfs-fsck.adoc",
      "accessed": "2026-10-28"
    },
    {
      "id": "lfs-evidence",
      "title": "Hesela: Git LFS history and pointer-size recovery controls",
      "url": "https://hesela.dev/research/git-lfs-recovery/summary.json",
      "accessed": "2026-10-28"
    }
  ],
  "provenance": [
    "Upstream v2.43.0 source trace and three repetitions of constructed native-Git cases; not a new vulnerability claim."
  ]
}
