Created
March 3, 2015 23:11
-
-
Save michaelesmith/30eb8613fc54b9380d57 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Actually, you don't need to do that. GitHub provides a special pulls remote "namespace" on the upstream repo, so you can add it as a fetch pattern to your .git/config like so: | |
[remote "upstream"] | |
url = https://github.com/neovim/neovim.git | |
fetch = +refs/heads/*:refs/remotes/upstream/* | |
fetch = +refs/pull/*/head:refs/pull/upstream/* | |
Then when you `git fetch --all`, you will have ALL pull requests available in your local repo in the local pull/ namespace. To check out PR #42: | |
git checkout -b foo refs/pull/upstream/42 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment