git HEAD

Creator
Created
Created
2019 Nov 5 3:14
Editor
Edited
Edited
2025 Jun 7 16:29
Refs
Refs
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
 
 
 
 
 
 

Recommendations