Count your git commits locally

Ever wondered how many commits you have made in your repository? Of course you can always upload to github and see the commits but why upload when you can see it locally. This is just a fun command if you like to measure your progress by the number of commits that you make.

git shortlog -s

The command lists the commits for all the contributors in the active branch. If you feel like sorting it, just pass in the -n option

git shortlog -s -n

Ryan Sukale

Ryan is just a regular guy next door trying to manage his life and finances.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *