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.
More on Monorepos, large files and repository performance
What are the main trade-offs of a monorepo?IntermediateHow do you make CI efficient in a monorepo?AdvancedHow do you onboard developers to a very large repo without a 30-minute clone?IntermediateWhat does Scalar do and when do you recommend it?Advanced`git status` takes 20 seconds in a big working tree. How do you fix it?AdvancedWhen should a team adopt Git LFS and when should it avoid it?Intermediate