Process Flow - HEAD pointer concept
Start: Repository with commits
HEAD points to current branch
Branch points to latest commit
Checkout changes HEAD
HEAD moves to new branch or commit
Working directory reflects HEAD state
HEAD is a pointer that shows which commit or branch you are currently working on. When you switch branches or commits, HEAD moves to point there.