开发者

GIT summary of changes since initialising repository

Ju开发者_JAVA技巧st out of curiosity I want to see the total amounts of insertions, deletions and other modifications on my GIT repository since it was first created.

Similar to git log --stat but for all commits.

Anyone know how to do this?


Just find the SHA1 of the first commit in your repository. One way to do that would be to run git log --graph --pretty=oneline -- the last line you see should be the first commit in the repository. Take that SHA1 and run

git diff --stat <SHA1>..

also, possibly interesting, may be

git shortlog -s

You may also find gitstat interesting.


This may be what you're looking for:

git diff --stat ORIG_HEAD..HEAD
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜