Find a pull request given the commit sha
Put this line into your ~/.gitconfig
[alias]
pr = "!f() { git log --merges --ancestry-path --oneline $1..master | grep 'pull request' | tail -n1 | awk '{ print $5 }'; }; f"
$ git pr bae6452
Written by Miguel Ángel Fernández
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Pull
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#