Today I Learned: Viewing the Git Leaderboard

Tuesday July 10, 2018 at 02:26 pm CDT

Originally published 8/31/2017 on the Hashrocket TIL blog

Everyone knows that writing code is a competition in which she with the most commits wins. So, obviously, you want to periodically check the leaderboard to see who the 10x developer on the team is.

How do you do that?

git shortlog

This will give you a list of all the contributors to the repository and the number of commits they have made. You can add the -s flag (for ‘summary’) to just see names and numbers.

Once you have acquired the evidence that you are indeed the mythical 10x developer, demand a raise from your employer and threaten to go work for Google if you don’t get it.

If you already work for Google, threaten to…I don’t know, get a job at Space X or something.