Git · Middle · Question 50 of 75

Why do many teams require linear history on main?

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.

Further reading

Problem with a question

Git · Middle · question 50

Test yourself

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

Take this quiz