计算特定用户在Github所有项目中编写的总行数 [英] Count total lines written by a specific user throughout all its projects in Github

查看:137
本文介绍了计算特定用户在Github所有项目中编写的总行数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道在Github中是否有一种方法来计算特定用户在其项目中所有所有中编写的代码行总数。

git log --author =< author> --oneline --shortstat 会列出给定repo的代码量,但我想知道是否有办法列出用户曾经推送给Github的所有代码。

解决方案

我已经编写了一个基本程序来执行此操作: http://stats.kaufer.org/



它的来源在Github这里: https://github.com/mjkaufer/stats



基本上,我最终使用了Github的API。


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.

解决方案

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.

这篇关于计算特定用户在Github所有项目中编写的总行数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆