In Git, HEAD is a pointer that indicates the currently checked out commit. While 'master' (or 'main') is commonly the default branch, HEAD itself is not a branch but rather a pointer mechanism.
- HEAD can point to:
- A branch reference (normal state)
- A specific commit directly (detached HEAD state)
- Branches are references that:
- Point to specific commit versions
- Move automatically when new commits are created