In this article you will learn a few useful commands to check the activity on your repo.

git log

Get your repo history by using

1
$ git log

Get more commit details

In certain circumstances, you might want to get more detail on some commits.

Use the -p flag to see all the differences introduced in each commit

Use the -2 to see the last 2 commits only

1
$ git log -p -2

Get less commit details

In other situations, you want to have less commit details and more of an overview of what is going on in your repo.

The --oneline flag will help you get a list of commits on one line

The --graph flag will display a graph that shows to which branches the commits were made

1
$ git log --oneline --graph