Understanding Detached HEAD

1
The Normal State

Normally, `HEAD` (your current location) points to a branch name, like `main`. The branch then points to the latest commit. They move together.

a1b2
c3d4
main
HEAD
Key Point: `HEAD` → `main` → `c3d4`. This is the standard, "attached" state. When you make a new commit, both `HEAD` and `main` move forward together.