Explore Courses Blog Tutorials Interview Questions
+1 vote
in DevOps and Agile by (19.4k points)
closed by

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?

closed with the note: Same question available

1 Answer

0 votes
by (27.5k points)

This command should do the magic: 

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

For example: 

$ git push origin develop:master

Browse Categories