0

In magit, I current always use b b to switch to master, and F to pull.

Is there a way to run git fetch origin master:master before b b to avoid updating the working tree?

1 Answer 1

0

Magit does not provide a command to do that. Something like this should do the trick:

(defun magit-pull-into-master (args) "Pull origin/master into master." (interactive (list (magit-pull-arguments))) (run-hooks 'magit-credential-hook) (magit-run-git-with-editor "pull" args "master:master")) 

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.