Skip to content

Instantly share code, notes, and snippets.

@ranbena
Forked from amirnissim/pr.sh
Created June 21, 2014 20:23
Show Gist options
  • Save ranbena/9f4ab95d0905857d5af4 to your computer and use it in GitHub Desktop.
Save ranbena/9f4ab95d0905857d5af4 to your computer and use it in GitHub Desktop.
cd my-repo
git fetch upstream
git checkout --detach upstream/master
git pull --no-commit upstream refs/pull/<pr-id>/head
# local repo now has (uncommited) changes from pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment