Back
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?
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
31k questions
32.8k answers
501 comments
693 users