Git · Senior · Question 57 of 76
What is the trade-off of a monorepo with Git compared with many repositories?
- 1Simpler CI, but commits can't touch more than one project
- ✓Correct answer: Atomic cross-project changes, but scaling and access control are harder
- 3Faster clones, but no way to share code between projects
Explanation
One commit can change a library and its users together. In exchange you need sparse checkout, partial clones, path-based CI and CODEOWNERS as the repository grows.