Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Find who created the last commit in unattended remote branches
#!/bin/bash
for branch in `git branch -r | grep -v HEAD`;do echo -e `git show --format="%ci\t%cr\t%cN" $branch | head -n 1` \\t$branch; done | sort -r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.