Interview Prep/Git & GitHub/Repository Health, Size and Performance

In a blobless clone, `git log -p` and `git blame` are painfully slow, and offline they fail with `fatal: could not fetch 3f2a9c... from promisor remote`.

AdvancedTroubleshootingRepository Health, Size and Performance
Answer

Likely causes → The repo was cloned with --filter=blob:none. Historical blobs are fetched lazily from the promisor remote the first time a command needs them, often one round-trip at a time. Without network, or with the remote gone, those commands fail.

Diagnose →

git config --get remote.origin.promisor
git config --get remote.origin.partialclonefilter

Fix → For history-heavy work, backfill the blobs once:

git fetch --refetch origin                 # Git 2.36+: refetch everything, dropping the filter
git config --unset remote.origin.partialclonefilter

Or use a treeless/blobless clone only on CI and a full clone for developers who blame and bisect a lot.

Prevent → Pick the clone type per use case: blob:none for build agents and quick checkouts, full clones for archaeology.

All Git & GitHub questions Roadmap: Git & GitHub

More on Repository Health, Size and Performance