Jua*_*nti 5 svn git mercurial metrics bazaar
您如何知道使用修订控制系统的项目涉及多少开发人员?我的一个朋友发现这种方式在git log中查找答案:
git log | grep Author: | sort -u | cut –delimiter=” ” -f2 | sort -u | wc -l
Run Code Online (Sandbox Code Playgroud)
在git中有一种简单的方法吗?其他版本控制系统如Subversion,Bazaar或Mercurial如何?
Rya*_*ary 17
该shortlog命令非常有用.这总结了典型的git-log输出.
$ git shortlog -sn
119 tsaleh
113 Joe Ferris
70 Ryan McGeary
45 Tammer Saleh
45 Dan Croak
19 Matt Jankowski
...
Run Code Online (Sandbox Code Playgroud)
传递给wc查看唯一用户名的数量:
$ git shortlog -sn | wc -l
40
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
368 次 |
| 最近记录: |