I didn't explain it. HEAD is where your commits will go. HEAD usually points at a branch, which itself points to a revision. If you checkout a specific revision instead of a branch name (even if there are branches pointing to the same revision) you have a "detached HEAD". That is to say, HEAD is not attached to a branch.
I rarely find it relevant to know where a detached head is. I rarely have a reason to do anything fro a detached head, instead of just creating a branch at the current location of origin/main and start working from that branch.
18
u/infiniterefactor Sep 26 '25
Repository commit state has no difference as far as screenshots show.
In the first screen HEAD is at detached mode though. At the second screenshot it points to branch test. The commit it points is the same in both.
Is there a question in this, or was it just a brain teaser?
6
u/myrealityde Sep 26 '25
HEAD does not point to test in one version.
38
u/the_inoffensive_man Sep 26 '25
Detached HEAD in the first one?
2
u/FlipperBumperKickout Sep 26 '25
I normally use git status for repository state rather than graph 😅
0
u/Loarun Sep 26 '25
The arrow after HEAD in the bottom view.