Skip to content

Instantly share code, notes, and snippets.

@alandotcom
Created January 27, 2015 21:48
Show Gist options
  • Select an option

  • Save alandotcom/81b63c221dabacae5724 to your computer and use it in GitHub Desktop.

Select an option

Save alandotcom/81b63c221dabacae5724 to your computer and use it in GitHub Desktop.
fetch pr
# fetch a pull request locally
# git pr REMOTE PR#
pr = "!f() { git fetch $1 pull/$2/head:pr-$2 && git checkout pr-$2; }; f"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment