Skip to content

Instantly share code, notes, and snippets.

@VojtechVitek
Created June 19, 2017 19:59
Show Gist options
  • Select an option

  • Save VojtechVitek/da3077b950f7e3b52be1443dfa514f5b to your computer and use it in GitHub Desktop.

Select an option

Save VojtechVitek/da3077b950f7e3b52be1443dfa514f5b to your computer and use it in GitHub Desktop.
git checkout Github Pull Request locally
git config --add remote.origin.fetch '+refs/pull/*/head:refs/remotes/origin/pr/*'
git fetch
git checkout -t origin/pr/12
# Based on https://gist.github.com/piscisaureus/3342247
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment