git backfill
Download missing file contents in a partial clone
The 'git backfill' command, for partial clones made with --filter=blob:none, downloads the missing file contents (blobs) in efficient batches — instead of Git fetching them one by one as commands need them. It is newer than the Git version this site verifies against (2.48).
Synopsis
git backfill [--min-batch-size=<n>] [--[no-]sparse]Examples
Fetch missing contents
git backfillAll missing blobs, in batches.
Only sparse folders
git backfill --sparseLimited to your sparse checkout.
Workflow Examples
git clone --filter=blob:none <url>Fast clone
git backfillGet the rest before going offline
Troubleshooting
git: 'backfill' is not a git command
Cause: Your Git is too old
Update to 2.49 or newer
Tips & Pitfalls
Best Practices
- ✓Combine with sparse-checkout to download only what you use.
FAQ
Only with partial clones, when on-demand downloads are too slow.