Last Updated: February 25, 2016
·
990
· marcin-wosinek

git: mails to all branch authors

Let's imagine you want to make a clean up of remote branches - it's good to mail authors of last commits on them.

git branch --remote | # we get all remote branches
xargs -L 1 git log -1 --format="%ce" | # get mail of author of each commit
sort -u # remove duplicats

To get log in <email> (<branch>) format you achieve by:

git branch --remote | xargs -L 1 git log -1 --pretty="%ce %d"

1 Response
Add your response

git branch --remote | xargs -L 1 git log -1 --format="%ce" | sort -u

over 1 year ago ·