Git – Viewing past commits

Simply run:


You can find all my latest posts on medium.
git log

the log command has a huge number of options available:

git log -2 # means only show the last 2 entries

git log -p -2 # same as above but also show diff data.

git stat # shows info in a more summarised form.