Git log --stat branch summary

I would like to show how many changes (insert + delete) I made in the function branches. Is there a way to get a summary of the output of git log --stat for changes between two commits (root root / tip).

Thanks.

+6
source share
2 answers

for the function branch that you use for

 git diff --stat dev..feature 

it depends on the fact that there is no merger. See my post here: http://dymitruk.com/blog/2012/02/05/branch-per-feature/

--stat can take parameters. This is useful if you have a wider terminal. You can do --stat=200 to say that your display can hold 200 columns.

If you want to use this in a script, use --numstat . He will not cut the path.

+9
source

use git diff

 git diff --stat <branch root> HEAD 
+3
source

All Articles