In Git, the commit you are currently on is known as the
HEAD commit. In many cases, the most recently made commit is the
To see the
HEAD commit, enter:
git show HEAD
The output of this command will display everything the git log command displays for the
HEAD commit, plus all the file changes that were committed.
Enter the command to show the
Notice the output. The ghost’s most recently added line is in green text.