Explore Courses Blog Tutorials Interview Questions
0 votes
in DevOps and Agile by (29.3k points)

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?

1 Answer

0 votes
by (50.2k points)

Generally, to push the local branch to the master branch in the remote we use:

git push <remote> <local-branch>:<master-branch >

For example:-

git push origin local:master

Here local is my local branch and master is my master branch which I need to push changes into it.


Browse Categories