From the above example, we can get to know many statistics like how the repository is growing, number of people contributing, number of commits they have made and lot more.
Apparently, my team uses a private repository on Bitbucket and Bitbucket don’t have anything like contributors page just like how we see above. Maybe because Bitbucket is mostly used by enterprises to host private repositories and they won’t have any external contributors. It makes sense GitHub having contributors page because it hosts 1000s of open source projects and has numerous contributors.
Since Bitbucket doesn’t have this feature, I thought of exploring some git commands to extract these statistics from my git repository. [Got one more opportunity to learn more about Git 🙂 ]
To start with, I figured out how to find number of commits made by each developer.
$ git shortlog -s -n
This would give me a list of all the contributors with number of commits they have done.
To be continued…