Git · Senior · Question 46 of 76
Why do some teams forbid merge commits from main into feature branches?
- ✓Correct answer: They clutter history; rebasing keeps it linear
- 2Git can't merge
maininto any other branch at all - 3They make the feature branch read-only for everyone
Explanation
Repeated "Merge main into feature" commits add noise to the PR. The trade-off is that rebasing rewrites commits, which matters if others share the branch.