I have three branches on remote (master, development, featurebranch). What I wanted is that when I push branch1, it should try and push it to the development branch, or any kind of branches I prefer. I've seen examples of what I should do like this
git push origin local_name:remote_name
But when I tried it, Git automatically merges the local branch to the remote branch. I wanted it to have a pull request on that branch. There's this nifty function on GitHub where I can just switch and select the branch that I wanted it to be merged:
But is there a way that when I push my branch to a remote branch, the base branch is set to the remote branch I specified?