Useful snippets

    navigate git history

    git checkout HEAD^ # back
    git checkout HEAD@{1} # go to previous HEAD position

    Go forward

    List ancestry (later) commits

    From HEAD (older commit) to main branch (up-to-date)

    git log --reverse --ancestry-path HEAD^..main