Git · Middle · Question 50 of 75
Why do many teams require linear history on main?
- 1Git runs faster without merge commits
- 2Linear history uses less storage on the server
- ✓Correct answer: It's easier to read, bisect and revert
Explanation
Each commit on main is a complete change you can test or revert on its own. Squash or rebase merges achieve this; protected branches can enforce it.