git-partial-clone · shipping · also partial Git clone

Git partial clone

A Git partial clone omits selected repository objects while retaining a configured promise that missing objects can be fetched when needed.

Related Observatory article: Git partial clone on hesela.com

Object scope: partial clone filters objects within a selected commit graph; shallow cloning limits the history graph itself. The two mechanisms are distinct and can be combined. A provider must remain available for objects not materialized locally. [1]

Verification: Git v2.43.0 fsck recognizes promised absence. In a seven-case experiment, full and strict checks passed with five missing blobs; a HEAD checkout fetched two but left historical reads unavailable offline. One online read fetched its object and changed the candidate inventory. These are designed cases, not failure frequencies. [2] [5]

Recovery scope: rev-list --objects --all --missing=print can succeed while listing missing IDs. A shallow boundary can also hide required history without reporting missing objects. Retain the intended history scope and test a disposable copy with providers unavailable. [3] [4]

Archival boundary: self-contained objects do not establish reader compatibility. The native controls used one Git version, so cross-version restoration and external application dependencies remain untested. [5] [6]

Relations

related
Git bundle, Git alternate object database, Backup verification, Restore test

Advantages

  • Can avoid transferring file contents that are not yet needed.

Limitations

  • Missing promised objects remain a dependency, not an independent backup.

Citations

  1. Git v2.43.0: partial-clone dependency contract (accessed 2026-10-23)
  2. Git v2.43.0: promisor-aware object checks (accessed 2026-10-23)
  3. Git v2.43.0: missing-object enumeration (accessed 2026-10-23)
  4. Git v2.43.0: shallow history boundaries (accessed 2026-10-23)
  5. Hesela: Git partial-clone offline recovery controls (accessed 2026-10-23)
  6. Hutchinson et al.: Logical vs. Physical File System Backup, OSDI 1999, sections 1, 3-5 (accessed 2026-10-23)
Sources & caveats
  • Pinned Git v2.43.0 design and implementation, plus native Git 2.43.0 controls. No later-version equivalence or hardware reliability inference.

JSON: /data/terms/git-partial-clone.json

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

Cite this page
Hesela team. Git partial clone. Hesela. 2026-10-23. https://hesela.dev/terms/git-partial-clone/