问题
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.
回答1:
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.
来源:https://stackoverflow.com/questions/22773834/count-total-lines-written-by-a-specific-user-throughout-all-its-projects-in-gith