Git GUI push to specific branch

desmondlee picture desmondlee · Feb 24, 2016 · Viewed 8.6k times · Source

How can i push to specific branch in remote with GIT gui. I can't seem to find an option for it. Let say i want to push to a specific branch name 'branchOne'. How could it be done? I am pushing to gitlab.

enter image description here

Answer

vivek verma picture vivek verma · Feb 24, 2016

Whenever you push something to a remote server you are pushing a specific branch. In your case you have a master branch so changes in your master branch will be added to remote.

In case you have two branches master and development then while pushing you will have to specify which branch you want to push in GIT GUI, so code committed in that branch will only be added to remote repository.

So technically what you are asking for is not required.