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"
Written by Marcin Wosinek
Related protips
1 Response
git branch --remote | xargs -L 1 git log -1 --format="%ce" | sort -u
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Linux
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#