From the course: Complete Guide to Git

Unlock the full course today

Join today to access over 24,900 courses taught by industry experts.

View commits

View commits

- [Instructor] In this movie, we will learn how to view the commits that are stored in the Git repository. We've already made our first commit and now we want to view it. From inside our project directory, we can type git log, and the log command will give us a list of the commits that are in the repository in reverse chronological order. The most recent commit will be at the top. I only have one commit so far, but you can imagine that if I had more, then this block would be repeated several times. Let's look at the information that's shown for this commit. It says that it's a commit and then it has an identifier for this commit. This is a unique value that's assigned to each commit when it's stored. Your value will be different than mine. Next is the name and the email address of the author of this commit. Remember, we set that up during configuration, then, the date that the commit was created, and finally the commit message that we provided that describes the contents of this…

Contents