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

Why can `git pull` on a large monorepo be slow and how do you mitigate it?

AdvancedConceptGitHub features, history rewriting and scale
Answer

Fetch computes and transfers many objects, then merge or checkout touches many files. Use --filter=blob:none, shallow-for-CI, fetch.negotiationAlgorithm=skipping, background prefetch via maintenance, sparse checkout and fsmonitor, and avoid full --all fetches.

git config fetch.negotiationAlgorithm skipping
git config feature.manyFiles true
All Git & GitHub questions Roadmap: Git & GitHub

More on GitHub features, history rewriting and scale