HEAD is the third of Git’s three areas: the last commit. git diff HEAD compares the working tree against it.
HEAD
the pointer to the commit (usually via a branch) that your checkout is based on.
HEAD is the third of Git’s three areas: the last commit. git diff HEAD compares the working tree against it.