Summary
To view a list of previous commits, enter the following command in your terminal:
git log
Details
The output to the git log
command will look something like this:
commit 1f0de91085f50af871d6486961fadea1d4a7aad2 (HEAD -> topic-branch)
Author: John Smith <example@simpledev.io>
Date: Thu Oct 24 16:24:50 2019 -0700
Add new line
commit 578ffd5b66a82d24c3ab863de9b860daf3125b17
Author: John Smith <example@simpledev.io>
Date: Wed Oct 9 13:16:00 2019 -0700
Initial commit
Exercises
There are no exercises for this lesson.
References
Viewing the Commit History from the Pro Git book