Git · Senior · Question 46 of 76

Why do some teams forbid merge commits from main into feature branches?

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.

Further reading

Problem with a question

Git · Senior · question 46

Test yourself

Take the Git · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz