Skip to content

.tip

· one of the small things

--first-parent reads a merge-heavy history as a timeline

On a branch that merges feature branches in, a plain log mixes together every commit from every feature. --first-parent only follows the main line, so you get one entry per merge.

git log --first-parent --oneline main

That's the release history the way a person would tell it, and git bisect --first-parent searches it the same way.

git