Interview Prep/Git & GitHub/GitHub features, history rewriting and scale

What is the multi-pack-index and what is a cruft pack?

AdvancedConceptGitHub features, history rewriting and scale
Answer

A multi-pack-index (MIDX) is one lookup index across several packs so Git does not search each .idx, and it enables incremental repacking and reachability bitmaps. A cruft pack stores unreachable objects with their mtimes in a separate pack, so gc can expire them without exploding them into thousands of loose files.

git multi-pack-index write --bitmap
git repack --cruft -d
All Git & GitHub questions Roadmap: Git & GitHub

More on GitHub features, history rewriting and scale