Change destination of git push

Viewed 8566

I have to remote repositories

$ git remote show

repoA
origin

git push will push changes to origin, how can I change the push destination so that it goes to repoA's url? I know I could use git push repoA branch but I want to just push to repoA master for now.

4 Answers

it is also possible to change destination branch directly on GitHub click edit button, on top at the right side of your PR name. then you will have the option to select the right destination branch.

Related