Skip to content

Instantly share code, notes, and snippets.

@elmendalerenda
Forked from briandailey/.gitconfig
Last active August 29, 2015 14:05
Show Gist options
  • Save elmendalerenda/29fe8a5fabf27712c839 to your computer and use it in GitHub Desktop.
Save elmendalerenda/29fe8a5fabf27712c839 to your computer and use it in GitHub Desktop.
find pull request
[alias]
pr = "!f() { git log --merges --ancestry-path --oneline $1..master | grep 'pull request' | tail -n1 | awk '{ print $5 }'; }; f"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment