Git HEAD
HEAD is Git's name for "where you are now". It usually points to the current branch, and the branch points to its latest commit.
You can use HEAD in commands: HEAD~1 is the commit before HEAD, HEAD~2 the one before that.
See where HEAD points
HEAD -> main means HEAD points to the main branch:
git log --oneline -3
a85bb36 (HEAD -> main) Added .gitignore
72df4ee (tag: v1.1, tag: v1.0) Merge branch 'new-feature'
6682b7d Merged conflict-demo, kept W3Schools heading
Look inside .git/HEAD
cat .git/HEAD
ref: refs/heads/main