Getting Git

A comprehensive video course from git init to Git Master.

init: git show


In this video we'll learn how to use git show.

git show is very similar to git log. In fact most of their options are identical.

So there isn't much git show does that you couldn't do with git log.

We can demonstrate this running:

git log -1

And then running git show

Notice that it outputs similar information to git log. However, git show also outputs the changes that were recorded in the commit.

In addition, we didn't have to pass additional options to limit git show. It only showed the most recent commit by default.

We can also pass git show a commit SHA to output information about just that commit.

To demonstrate, I'll run git log --oneline and copy the SHA from one of the older commits.

Then we'll pass that to git show.

While you'll use git log more than git show, it's good for viewing information about a single commit.