Git — Medium
Key points
- HEAD is not fixed to a specific branch or commit.
- Its value changes when switching between branches or commits.
- HEAD can point to a commit, branch, or tag.
- It serves as a shortcut for the current working directory.
Ready to go further?
Related questions
