Skip to Content
Learn
How to Backtrack
head commit

In Git, the commit you are currently on is known as the HEAD commit. In many cases, the most recently made commit is the HEAD commit.

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.

Instructions

1.

Enter the command to show the HEAD commit.

Notice the output. The ghost’s most recently added line is in green text.

Folder Icon

Sign up to start coding

Already have an account?