Reviewing Commits with git-log
Let’s look at our history of change in the repository using
git-log, a handy way to display the commit objects in the repository database.
$ git log On branch master nothing to commit, working directory clean Ryans-11:learn-ruby ryan$ git log commit 10183ab59acbea83c8aed6cde90d5b2e8506191f Author: Ryan Irelan <[email protected]> Date: Fri Apr 1 11:50:16 2016 -0500 adding remaining files to repository commit 0542a0f470d5e5e4af0bb2a7573ab9fc34167475 Author: Ryan Irelan <[email protected]> Date: Fri Apr 1 11:13:40 2016 -0500 adding first file
If you followed along with the commands I typed then you should see something similar to this.
git-log outputs two commits. We’ll dig in a deeper on
git-log a bit later. For now we just want to see that our commits are there.