• 0

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