Progress:
TIER 1 · MODULE 42· Basics

git backfill

For partial clones — pull objects on demand.

🎯 What & why

Lazily fetch missing blobs in a partial clone. Used after --filter=blob:none clones to materialize content on demand.

🧠 Mental model

Backfill walks the index (or the sparse cone), finds entries whose blob SHA is not present locally, and asks the promisor remote (the one set during --filter clone) for them in batches. The object DB is grown until the working tree can be materialized.

🛠️ Synopsis

git backfill [--batch-size=<n>] [--min-batch-size=<n>] [--[no-]sparse]

🎚️ Switches & options

FlagWhat it does
--batch-size=<n>Group requests in batches of <n>.
--sparseHonor sparse-checkout — only backfill what would be checked out.

💡 Use cases

🧪 Examples

After a partial clone, fill in blobs as needed.
$ git backfill --sparse

🎓 Recommendations

🪤 Common pitfalls

🔗 Related modules

📝 Quiz

Hit each option, then Check answers. Score is recorded; Next is always open.