Interview Prep/Git & GitHub/Monorepos, large files and repository performance

You discover 3 GB of binaries in history and the repo clones slowly. What are the options?

AdvancedProductionMonorepos, large files and repository performance
Answer

Rewrite history to drop or LFS-migrate the blobs (git filter-repo --strip-blobs-bigger-than, git lfs migrate import --everything), coordinate a freeze and re-clone, or start a fresh squashed repo and archive the old one read-only. Rewriting forces every open PR to rebase, so the cheaper path for some orgs is to leave history alone and use partial clones so developers do not download old blobs.

All Git & GitHub questions Roadmap: Git & GitHub

More on Monorepos, large files and repository performance