How do you onboard developers to a very large repo without a 30-minute clone?
IntermediateProductionMonorepos, large files and repository performance
Answer
Provide a partial clone plus cone-mode sparse checkout script for each team, preload caches in a devcontainer or a prebuilt volume, and run background git maintenance. New developers clone only their service and shared libs.
git clone --filter=blob:none --sparse [email protected]:org/mono.git
git -C mono sparse-checkout set services/billing libs/auth
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?AdvancedWhat 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?IntermediateHow do you control LFS cost and bandwidth in CI?Intermediate