Skip to content

Instantly share code, notes, and snippets.

@frangarcia
Created December 13, 2017 16:58
Show Gist options
  • Save frangarcia/a14ce1ea1ba03eac57a3aec8c9746b23 to your computer and use it in GitHub Desktop.
Save frangarcia/a14ce1ea1ba03eac57a3aec8c9746b23 to your computer and use it in GitHub Desktop.
Remote branches in origin for which I did the last commit
git fetch -p && git branch -r --list origin/hotfix\* origin/feature\* origin/bugfix\* origin/chore\* | while read -r remote_branch; do if [ $(git log -1 $remote_branch --pretty=format:'%ce') == "your@email.com" ]; then echo $(git log -1 $remote_branch --pretty=format:'%d'); fi; done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment