Reputation: 273
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
Upvotes: 1
Views: 737
Reputation: 273
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
Upvotes: 0
Reputation: 1326016
The NetBeans push wizard include a step 4 where:
At the
Update Local References
page, choose the branch(es) to be updated in the Remotes directory of your local repository and click Finish.
The specified remote repository branch is updated with the latest state of your local branch.
So you should be able to select a different branch at that stage.
Since the OP neneitaly reports in the comments it is not possible, that leaves only the workaround of creating a local branch (where master
is) with the right target name, and pushing that branch.
Upvotes: 1