Skip to content

Instantly share code, notes, and snippets.

@ryan-williams
Created March 27, 2019 18:12
Show Gist options
  • Save ryan-williams/08d8ac01a73456fa0eda455700160dd6 to your computer and use it in GitHub Desktop.
Save ryan-williams/08d8ac01a73456fa0eda455700160dd6 to your computer and use it in GitHub Desktop.
Add GitHub PRs as refs in local repo clones
git config --add remote.origin.fetch '+refs/pull/*/head:refs/remotes/pr/*'
git fetch origin
git checkout pr/123
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment