Skip to content

Instantly share code, notes, and snippets.

@zetter
Created October 31, 2013 09:51
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zetter/7247105 to your computer and use it in GitHub Desktop.
Save zetter/7247105 to your computer and use it in GitHub Desktop.
List the remote branches that with a last commit that you authored.
# 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