How do I push a local Git branch to master branch in the remote?

picardo

I have a branch called develop in my local repo, and I want to make sure that when I push it to origin it's merged with the origin/master. Currently, when I push it's added to a remote develop branch.

How can I do this?

mipadi
$ git push origin develop:master

or, more generally

$ git push <remote> <local branch name>:<remote branch to push into>

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Git: How can I merge local branch into remote master branch

From Dev

How to make local master a remote branch with git?

From Dev

git, How to push local branch into the specific remote

From Java

How do I push a new local branch to a remote Git repository and track it too?

From Java

How do I rename both a Git local and remote branch name?

From Dev

How do I compare a local git branch with a remote git branch with this setup?

From Dev

Git push on new local branch updates master instead of creating new remote branch

From Dev

Git push not creating remote branch, pushing to master

From Dev

How do I revert changes in local git branch to remote tracking branch?

From Dev

Push local commits on master branch to new remote branch

From Dev

Git Update Local Branch with remote Master

From Dev

What does git do, when I push a local branch that does not exist on remote server?

From Dev

How do I get the remote tracking branch for a branch in Git?

From Dev

How do I merge a remote tfs branch into a git branch?

From Dev

how to git push to a local branch?

From Dev

Git push diverges the remote and local branch

From Dev

Git Push given Local and Remote Branch Name

From Dev

GIT Make local branch pull from remote1/master and push to remote2/legacy

From Java

How do I rename a local Git branch?

From Dev

Git. Rebase local branch atop local master. How do I ignore a single files changes?

From Dev

How to block push to master branch on remote

From Dev

How to check if I have Push permission in Git Master branch origin?

From Java

I cloned a remote branch. How do I checkout master?

From Dev

SourceTree create local branch but do not push on remote

From Dev

How do I push up my changes to a master git organization from a forked copy dev branch?

From Dev

How can I push the files in a feature branch to a remote's master branch?

From Dev

Is this git branch local or remote?

From Dev

Git: How to copy bitbucket master to a local branch?

From Dev

I push a local branch to remote, and the resulting name is "master" while it should be v1

Related Related

  1. 1

    Git: How can I merge local branch into remote master branch

  2. 2

    How to make local master a remote branch with git?

  3. 3

    git, How to push local branch into the specific remote

  4. 4

    How do I push a new local branch to a remote Git repository and track it too?

  5. 5

    How do I rename both a Git local and remote branch name?

  6. 6

    How do I compare a local git branch with a remote git branch with this setup?

  7. 7

    Git push on new local branch updates master instead of creating new remote branch

  8. 8

    Git push not creating remote branch, pushing to master

  9. 9

    How do I revert changes in local git branch to remote tracking branch?

  10. 10

    Push local commits on master branch to new remote branch

  11. 11

    Git Update Local Branch with remote Master

  12. 12

    What does git do, when I push a local branch that does not exist on remote server?

  13. 13

    How do I get the remote tracking branch for a branch in Git?

  14. 14

    How do I merge a remote tfs branch into a git branch?

  15. 15

    how to git push to a local branch?

  16. 16

    Git push diverges the remote and local branch

  17. 17

    Git Push given Local and Remote Branch Name

  18. 18

    GIT Make local branch pull from remote1/master and push to remote2/legacy

  19. 19

    How do I rename a local Git branch?

  20. 20

    Git. Rebase local branch atop local master. How do I ignore a single files changes?

  21. 21

    How to block push to master branch on remote

  22. 22

    How to check if I have Push permission in Git Master branch origin?

  23. 23

    I cloned a remote branch. How do I checkout master?

  24. 24

    SourceTree create local branch but do not push on remote

  25. 25

    How do I push up my changes to a master git organization from a forked copy dev branch?

  26. 26

    How can I push the files in a feature branch to a remote's master branch?

  27. 27

    Is this git branch local or remote?

  28. 28

    Git: How to copy bitbucket master to a local branch?

  29. 29

    I push a local branch to remote, and the resulting name is "master" while it should be v1

HotTag

Archive