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

Why is a repo with hundreds of thousands of files or a huge history slow, and which Git features help?

AdvancedConceptGitHub features, history rewriting and scale
Answer

git status stats every file, log and blame walk huge graphs, and clones transfer the full pack. Remedies: fsmonitor and untracked cache for status, commit-graph and multi-pack-index for history, partial clone and sparse checkout for transfer, and git maintenance.

git config core.fsmonitor true
git config core.untrackedCache true
git sparse-checkout init --cone
All Git & GitHub questions Roadmap: Git & GitHub

More on GitHub features, history rewriting and scale