Skip to content

How to perform git push -u origin HEAD easily in Magit? #4416

Answered by tarsius
erikmd asked this question in Q&A
Discussion options

You must be logged in to vote

Try P p. It doesn't run that git command but accomplishes something similar.

Also note that it is useful to associate two other branches with a given local branch, not just one. And IMO you are using the upstream "wrong". See https://magit.vc/manual/3.0.0/magit/The-Two-Remotes.html#The-Two-Remotes.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by erikmd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants