git backfill

Workspaces & Large Projects

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]
[ ] optional| or<arg> placeholder... repeatable--flag option

Examples

Fetch missing contents

git backfill

All missing blobs, in batches.


Only sparse folders

git backfill --sparse

Limited to your sparse checkout.

Workflow Examples

1
git clone --filter=blob:none <url>

Fast clone

2
git backfill

Get 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

A:

Only with partial clones, when on-demand downloads are too slow.