Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Count total lines written by a specific user throughout all its projects in Github

Tags:

git

github

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.

like image 550
mjkaufer Avatar asked Mar 31 '14 23:03

mjkaufer


1 Answers

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.

like image 58
mjkaufer Avatar answered Oct 25 '22 01:10

mjkaufer