Skip to content

Instantly share code, notes, and snippets.

@frangarcia
Created December 13, 2017 16:50
Show Gist options
  • Save frangarcia/390e4530e105ccb4aef5a8a3ef235435 to your computer and use it in GitHub Desktop.
Save frangarcia/390e4530e105ccb4aef5a8a3ef235435 to your computer and use it in GitHub Desktop.
Last author in remote branches
git fetch -p && git branch -r --list origin/\* | while read -r remote_branch; do git log -1 $remote_branch --pretty=format:'%ce';echo ;done | sort | uniq -c | awk '{printf("%s,%s\n",$2,$1)}' > output.csv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment