Skip to content

Instantly share code, notes, and snippets.

@bradleybeddoes
Last active August 29, 2015 13:57
Show Gist options
  • Save bradleybeddoes/9609804 to your computer and use it in GitHub Desktop.
Save bradleybeddoes/9609804 to your computer and use it in GitHub Desktop.
Add the ability to checkout Github pull request with number XXXX as local branches across all projects you maintain
$> git config --add remote.origin.fetch "+refs/pull/*/head:refs/remotes/origin/pull/*"
$> cd ~/development/myproj
~/development/myproj [develop] $> git checkout pull/XXXX
Branch pull/XXXX set up to track remote branch pull/XXXX from origin.
Switched to a new branch 'pull/XXXX'
~/development/myproj [pull/XXXX $] $>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment