Git · Middle · Question 65 of 75

What does git log --first-parent main show?

Explanation

It follows only the first parent of merges, giving a clean list of merged PRs instead of every commit inside each branch.

Further reading

Problem with a question

Git · Middle · question 65

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