Git number of commits per author on all branches
116,295
git shortlog -s -n --all --no-merges
Will give you statistics for all branches.
EDIT: Added --no-merges
to exclude statistics from merge commits.
Comments
-
jabal almost 2 years
I'd like to get the number of commits per author on all branches. I see that
git shortlog -s -n
Prints a very nice list but it is not counting the commits that are not yet merged from other branches. If iterate this command over every branch then obviously the common commits get counted multiple times. Could you give me a script/command that would yield me the overall picture?
-
Jaex almost 8 yearsIf anyone also need emails then you can use
-e
command like this:git shortlog -s -n -e --all
-
mBardos almost 7 yearsif you need a time period, specify
--since="22 Aug 2017"
-
angularrocks.com almost 7 years@mBardos
--since="22 Aug 2017" --before="01 Sept 2017"
to get period -
mBardos almost 7 years@Kuncevic I meant period as a date from past till now ;)
-
niken over 6 yearsAny way to include users who did not make commits? Show them as 0?
-
ralphtheninja over 6 years@sloven Anyone not part of that result made 0 commits :)
-
Milind Anantwar over 6 yearsCan this be filtered specific to any branch?