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
精彩评论