Git Fundamentals

Level up with "Git Fundamentals"

Access all lessons in this tutorial.

No spam, unsubscribe at any time.

This is a free tutorial

In exchange for your email address, you'll get full access to this and other free Epic Web Dev tutorials.

Why? First and foremost, your inbox allows us to directly communicate about the latest Epic Web Dev material. This includes free tutorials, tips, and periodic update about trends, tools, and happenings in Web Development that I'm excited about.

In addition to the piles of free Epic Web Dev content, you'll get the earliest access and best discounts to the paid courses when they launch.

There won't be any spam, and every email you get will have an unsubscribe link.

If this sounds like a fair trade, let's go!

Current section: Commands 17 exercises
lesson

Inspecting Commit History with `git show`

git show is a command that allows you to inspect your commits. When used without any arguments, it will display the latest commit, including the full diff that the commit composes:

$ git show

commit 1e3b9b0061712908132409ssdf234 (HEAD -> main)
Author: Your Name <youremail@address.com

Subscribe to unlock this lesson.

Transcript

00:00 git show is the command that we use to inspect our commits. Without arguments, it will show the latest commit, including the full diff that the commit composes. Use Q to get out of this view. We can be explicit with git show using the commit SHA. Type git show the SHA ID.

00:19 Now, that's a pretty big ID, so the abbreviated versions work as well. Let's copy just the first six characters and run git show with that. You'll notice that this commit is at head on the main branch, so we can also use the head alias, git show head.

Full Stack Vol 1
You might also like

Full Stack Vol 1

Kent C. Dodds
Kent C. Dodds

A comprehensive guide to full stack development

166 Interactive Exercises ・ Progress Tracking ・ Completion Certificate
Learn more