Git · Middle · Question 43 of 75

What happens to your commits when you squash-merge a PR and keep working on the same branch?

Explanation

The squash commit has different content history, so the original commits aren't ancestors of main. Start a new branch from main after a squash merge.

Further reading

Problem with a question

Git · Middle · question 43

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