Skip to content

Instantly share code, notes, and snippets.

@lukejacksonn
Created September 23, 2019 13:01
Show Gist options
  • Save lukejacksonn/5105833eb7d43eaf14846209200a3931 to your computer and use it in GitHub Desktop.
Save lukejacksonn/5105833eb7d43eaf14846209200a3931 to your computer and use it in GitHub Desktop.
An alias to checkout a pull request locally from the command line
alias ppr='f () { git fetch origin pull/$1/head:PR-$1 && git checkout PR-$1; }; f'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment