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 >
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.