Git - 显示作者贡献的统计数据
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/42715785/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Git - show statistics for authors contributions
提问by Anonymous
I m working with a team on a git project in Android studio and I would like to see the contribution of each author in terms of lines written or lines edited etc... Is there such a tool/plug-in that could show statistics for the authors ?
我正在与 Android Studio 的一个 git 项目团队合作,我希望看到每个作者在编写的行或编辑的行等方面的贡献......是否有这样的工具/插件可以显示统计信息作者?
采纳答案by Libin Varghese
You could try git-statsor use git command to explore from the logs
您可以尝试git-stats或使用 git 命令从日志中进行探索
Refer following posts
参考以下帖子
回答by Kovalex
As simple as:
git shortlog -s -n
就这么简单:
git shortlog -s -n
回答by Fbo
You should have a look to repoXplorer, an open source project I develop. It is able to compute stats for a project (a group of git repositories) as well as for a contributor and a group of contributors. It provides a REST interface and a web UI. The web UI provides various information like, for a given contributor:
您应该看看repoXplorer,这是我开发的一个开源项目。它能够计算一个项目(一组 git 存储库)以及一个贡献者和一组贡献者的统计数据。它提供了一个 REST 接口和一个 Web UI。Web UI 为给定的贡献者提供各种信息,例如:
- commits, lines changed and projects count
- date histogram of commits
- top projects by commits
- top projects by lines changed
- 提交、行更改和项目计数
- 提交的日期直方图
- 提交量最高的项目
- 按行更改的顶级项目
But best is to have a look to the demo instance here.
但最好是看看这里的演示实例。
Here is a screenshot of the stats page of a contributor (stats are computed accross all repositories indexed by repoxplorer, but can be filtered for a specific project):
这是贡献者的统计信息页面的屏幕截图(统计信息是根据 repoxplorer 索引的所有存储库计算的,但可以针对特定项目进行过滤):
回答by kszucs
I'd suggest Gitential. It measures:
我建议Gitential。它测量:
- coding volume
- coding hours
- productivity
- efficiency
- 编码量
- 编码时间
- 生产率
- 效率
and provides an analytical interface to visualize them on multiple levels:
并提供了一个分析界面来在多个层面上将它们可视化:
- projects
- teams
- repos
- developers
- 项目
- 团队
- 回购
- 开发商
It also deduplicates author identities and filter suspicious commits to give a better picture.
它还删除了作者身份的重复数据并过滤了可疑提交以提供更好的图片。