Created
October 31, 2013 09:51
-
-
Save zetter/7247105 to your computer and use it in GitHub Desktop.
List the remote branches that with a last commit that you authored.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# list remote branches with committer name and email | |
function git_remote_branches_with_author { | |
for branch in `git branch -r | grep -v /HEAD`; do | |
echo -en "$branch "; | |
echo -e `git show -s --pretty=format:"%an %ae" $branch`; | |
done | |
} | |
# show filtered remote branches | |
function find_git_remote_branches { | |
echo "`git_remote_branches_with_author | grep $1`" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment