SyntaxFix
Write A Post
Hire A Developer
Questions
The ^<n> format allows you to select the nth parent of the commit (relevant in merges). The ~<n> format allows you to select the nth ancestor commit, always following the first parent. See git-rev-parse's documentation for some examples.
^<n>
~<n>