Search code examples
gitbranchpushnetbeans-8git-remote

Pushing master to different remote branch netbeans GIT integration


I want to do something that looked very simple at the beginning but seems not to be so straightforward using netbeans git integration:

I have a local master branch I want to push to a remote branch but, here's the catch, with a different name say "origin/mymaster".

I know how to do it with command-line git but can't figure out how to do it with the netbeans integration. I have no prob in using command line but other collaborators of the project do and would love to stick to netbeans alone and stil be able to do this.

Can you do this in anyway using the netbeans git wizards?

Thanks in advance


Solution

  • I ended up using a workaround as also suggested by VonC. I created a local branch named mymaster (which is the branch name I want to push to on the remote) and then pushed that one using the netbeans wizard.

    It works but I would have prefered to have the option of pushing master:origin/mymaster directly in netbeans since it's something you can do natively in git command line.

    Enea