7

I'm wondering if there's a way in Github to count the total amount of lines of code a specific user has written throughout all of its projects.

git log --author="<author>" --oneline --shortstat would list the amount of code for a given repo, but I'm wondering if there is a way to list all the code a user has ever pushed to Github.

nbro
  • 13,796
  • 25
  • 99
  • 185
mjkaufer
  • 3,692
  • 5
  • 24
  • 53
  • You could use the API, get all repo contributed to, and get the lines written for each repo (which is how I tried to do it) but that seems overcomplicated... – Anubian Noob Mar 31 '14 at 23:09

1 Answers1

15

I've written a basic program that will do this: http://stats.kaufer.org/

The source of it is on Github here: https://github.com/mjkaufer/stats

Basically, I ended up using Github's API.

mjkaufer
  • 3,692
  • 5
  • 24
  • 53