0 votes
1 view
in Devops and Agile by (29.1k 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 (49.6k 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.

Refer: https://git-scm.com/docs/git-push#Documentation/git-push.txt-codegitpushoriginHEADmastercode

Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...