Created
August 12, 2018 20:00
-
-
Save srhb/d1ec4e9b433b63588d4b9604b55a238e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pr = mkAlias "pr" | |
${git} fetch -fu \ | |
${2:-$(${git} remote | grep "^upstream" || echo origin)} \ | |
"refs/pull/$1/head:pr/$1" && \ | |
${git} checkout "pr/$1"; | |
; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment