What is HEAD in Git?

Git Medium

Git — Medium

What is HEAD in Git?

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