Which commit is HEAD^2?
* 77335ab (HEAD -> main) Merge branch 'feat' |\ | * 7f131f4 (feat) F1 * | 5d11851 M1 |/ * 2398b4f A
2398b4f5d1185177335ab7f131f4
^2 selects the second parent of a merge, which is the tip of the merged-in branch. HEAD^ (or HEAD~1) would be the first parent, 5d11851.