News for hackers. Stuff that matters.
Re:Confusing Git Terminology by iamcreasy on Thursday November 02, 2023 @06:53PM (#38121529)
> HEAD pointer is pointing to the branch pointer (e.g. my-branch) which is pointing to the commit. (Except in a detached HEAD state.)

Yes! Here[1] is a nice picture about from Git Reset Demystified article. You can also see is in the following `git branch -a` output,

    * main
      remotes/origin/HEAD -> origin/main
      remotes/origin/main

[1] https://git-scm.com/book/en/v2/Git-Tools-Reset-Demystified

There are no comments on this comment yet.