git - 计算特定用户在 Github 中所有项目中编写的总行数

标签 git github

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

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

最佳答案

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

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

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

关于git - 计算特定用户在 Github 中所有项目中编写的总行数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22773834/

相关文章:

github - 我可以在单个 GitActions 工作流程文件中包含多个 'on' 吗?

Git pull 说 'everything is up to date'

git - 你如何在 GitHub 上创建自己的仓库?

Git:版本控制中的对象无法删除

git - 应用 git 补丁时忽略上下文行中的空格差异

git - 在自定义 GO 包之上提交

git - 我的 Github 仓库有 'main' 和 'master' 分支——它们的目的是什么?

Maven:从github下载依赖源的插件?

python - 将静态 Assets 从本地机器部署到 heroku - 无法打开文件 'manage.py' : [Errno 2] No such file or directory

git - 从 Bitbucket 中提取 Storyboard 时出现问题