Last Updated: February 25, 2016
·
853
· elmendalerenda

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