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

一世执手 提交于 2019-12-21 02:04:07

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!