Reputation: 5667
The following code does a great job but only on the current branch, how can I get the numbers for all the branches?
git pull -v; git shortlog -s -n -e
Upvotes: 0
Views: 157
Reputation: 47012
I believe this will do the trick:
git shortlog -s -n -e --all
The --all
makes it look as though all refs were put on the command line.
Upvotes: 2
Reputation: 1546
What about using for-each-ref, as suggested here
The command in your case would look like:
git for-each-ref --shell \
--format='git shortlog -s -n -e ^origin/master %(refname)' \
refs/heads/
You can then copy&paste the printed commands in the terminal which prints for each branch the shortlog (only the part after split from master I believe). Together with the command above (I assume you are in the master branch), you then have the full summary (and know who have been working on the different branches..).
Upvotes: 1