我的一个5个月的项目即将结束,作为无意义统计数据的粉丝,
我想知道自存储库开始以来已经提交了多少次提交.
我怎么找到它?
笔记:
我知道没有一个存储库,我只对本地版本感兴趣.
这在subversion中是微不足道的,因为修订标识符似乎是提交编号.
Wil*_*ell 40
要获取当前分支的提交数量:
git log --pretty=oneline | wc -l
要获得更完整的计数,请使用:
git rev-list --all | wc -l
有关指定要计数的对象的详细信息,请参阅git rev-list的docmentation.
尝试类似的东西很诱人:
find .git/objects -type f | wc -l
但这不会计算打包对象.最好坚持使用git rev-list.
spk*_*ane 13
$ git shortlog -s # or git shortlog -s -n
2 Adam Jacob
2 Matt Ray
19 Mike Adolphs
151 John Jackson
36 jtimberman
2 mattray
4 bkilroy
| 归档时间: |
|
| 查看次数: |
2629 次 |
| 最近记录: |