Git · Middle · Question 12 of 75

What does a squash merge of a pull request do?

Explanation

The target gets a single tidy commit, and the branch's intermediate commits aren't in its history. Downsides: big PRs become one huge commit, and the branch looks unmerged to Git.

Further reading

Problem with a question

Git · Middle · question 12

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