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 magit-status.
This means you can always access pull requests from Magit by hitting b b, the
usual branch command. The reference names start with /refs/pull/origin/, but
completion does most of the job here.
This is more lightweight approach than my previous post on the subject, which
used gh-pulls-mode. You should try both and see which one you prefer.
Automatically configure Magit to access Github PRs
11 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
magit-status
.This means you can always access pull requests from Magit by hitting b b, the usual branch command. The reference names start with
/refs/pull/origin/
, but completion does most of the job here.This is more lightweight approach than my previous post on the subject, which used
gh-pulls-mode
. You should try both and see which one you prefer.Tags: magit, init.el, emacs,
Easily Create Github PRs from Magit »
« New on Elpa: Spinner.el, mode-line spinners and progress-bars
Related Posts
It’s Magit! And you’re the magician! in magit
Content © 2019, All rights reserved. Icons under CC3.0.