Skip to content

Instantly share code, notes, and snippets.

@afirth
Created April 8, 2016 01:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save afirth/aa53ade4f7d61ac5659b667bd4754bdb to your computer and use it in GitHub Desktop.
Save afirth/aa53ade4f7d61ac5659b667bd4754bdb to your computer and use it in GitHub Desktop.
find merge commit containing a commit, for each local git branch
for i in $( git branch | perl -pe's/\*/ /' ); do echo $i $( git find-merge e299e $i ); done
#uses find-merge alias
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment