git-alternate-object-database · shipping · also Git object alternates

Git alternate object database

A Git alternate object database is an additional object directory that a repository searches for objects it does not store locally.

Related Observatory article: Git alternate object database on hesela.com

Lookup scope: objects/info/alternates and GIT_ALTERNATE_OBJECT_DIRECTORIES can make objects available outside the repository's own object directory; full fsck includes these stores. A passing check therefore does not establish that a copied directory is self-contained. [2]

Copy independence: clone --shared can borrow objects from its source. Repack without --local can copy borrowed reachable objects; local-only repacking deliberately excludes them. The --dissociate clone option breaks borrowing after transfer, but object-provider independence is separate from physical-media independence. [1] [3]

Measured boundary: in Hesela's Git 2.43.0 fixture, shared and local-repacked copies failed after their provider pathname became unavailable while their own file hashes remained unchanged. Full-repack and dissociate controls remained readable. This is a controlled provider-disconnection test, not a garbage-collection or device-failure measurement. [4]

Relations

related
Git bundle, Backup verification, Restore test, Data deduplication

Advantages

  • Allows object reuse without immediately duplicating an entire object store.

Limitations

  • Availability can depend on an external repository and its object retention policy.

Citations

  1. Git v2.43.0: shared clones, local repacking and dissociation (accessed 2026-10-19)
  2. Git v2.43.0: full and connectivity-only object checks (accessed 2026-10-19)
  3. Git v2.43.0: pack-objects --local (accessed 2026-10-19)
  4. Hesela: Git backup dependency and verification controls (accessed 2026-10-19)
Sources & caveats
  • Versioned Git documentation and disposable native-Git 2.43.0 controls; no fleet failure-rate estimate.

JSON: /data/terms/git-alternate-object-database.json

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

Cite this page
Hesela team. Git alternate object database. Hesela. 2026-10-19. https://hesela.dev/terms/git-alternate-object-database/