For those who are trying to determine how to do this here is the answer.
Yes the answer is in the docs!

I missed it on the first pass. Then looked at questions such as the below, trying b u and thinking it could be set there but this was not the case.
How do I set the upstream branch to push a local branch to in magit?

1 Answer 1


The equivalent of the git command in Magit is to set a new Remote.

This is where it is in the docs

Ma creates a new remote. When asked for the name of your remote, the usual answer is the name of your remote server, typically 'origin'

I hope this saves someone some time!


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.