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
  • 15,395
  • 32
  • 113
  • 196
mjkaufer
  • 4,047
  • 5
  • 27
  • 55
  • 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
  • 4,047
  • 5
  • 27
  • 55