Git Essentials(Second Edition)
上QQ阅读APP看书,第一时间看更新

Commits

Now it's time to start investigating commits.

To verify the commit we have just created, we can use the git log command:

[12] ~/grocery (master)
$ git log
commit a57d783905e6a35032d9b0583f052fb42d5a1308
Author: Ferdinando Santacroce <ferdinando.santacroce@gmail.com>
Date:   Thu Aug 17 13:51:33 2017 +0200

Add a banana to the shopping list

As you can see, git log shows the commit we did in this repository; git log shows all the commits, in reverse chronological order; we have only a commit for now, but next we will see this behavior in action.