Created
August 29, 2014 23:34
-
-
Save tonyghita/53ca525847fbb45f6326 to your computer and use it in GitHub Desktop.
Alias for checkout out pull-requests locally
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
[alias] | |
co-pr = !sh -c 'git fetch origin 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
And then just do
git co-pr <pr-number>