Automatically configure Magit to access Github PRs11 Mar 2015, by Artur Malabarba.
GitHub Integration post series
Did you know you can fetch Github pull requests with git by adding a
remote.origin.fetch configuration? That insightful tip is a courtesy of Oleh
at (or emacs, a very active blog that has a habit of unbalancing parentheses
wherever it goes). I like the tip so much I wanted to add something to it.
Instead of manually adding that line to you
.git/config file, why not have
Magit do that for you?
The following snippet will ensure that you always have this fetch configured on
Github repositories as soon as you issue
This means you can always access pull requests from Magit by hitting b b, the
usual branch command. The reference names start with
completion does most of the job here.
This is more lightweight approach than my previous post on the subject, which
gh-pulls-mode. You should try both and see which one you prefer.