Skip to content

Instantly share code, notes, and snippets.

@tonyghita
Created August 29, 2014 23:34
Show Gist options
  • Save tonyghita/53ca525847fbb45f6326 to your computer and use it in GitHub Desktop.
Save tonyghita/53ca525847fbb45f6326 to your computer and use it in GitHub Desktop.
Alias for checkout out pull-requests locally
[alias]
co-pr = !sh -c 'git fetch origin pull/$1/head:pr/$1 && git checkout pr/$1' -
@tonyghita
Copy link
Author

And then just do git co-pr <pr-number>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment