Concept

HEAD

Identifies the current checkout, usually by a symbolic reference to a branch. It can point directly to a commit when detached, or to an unborn branch before the first commit.

Formal Syntax & Structure

git syntaxgit
HEAD

Working Example

Example Snippetgit
git show HEAD:notes.txt
Git Reference