Skip to content

Instantly share code, notes, and snippets.

@amirnissim
Last active August 29, 2015 14:02
Show Gist options
  • Save amirnissim/aefb61b00e9a5d1e628f to your computer and use it in GitHub Desktop.
Save amirnissim/aefb61b00e9a5d1e628f to your computer and use it in GitHub Desktop.
Local branch for a Github Pull Request
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