问题
I'm using netbeans 7.1 and I want to change remote branch to push to. I cannot find a way to do that. If I do a pull, I can see the branches (dev and master). But when I do a push, I only see my local, then the one orginal branch (master).
Edit:
I can also see the remote branches when I do browse the repo. I see both (dev) and (master) there.
Any advice?
回答1:
After two hours I have figured out how to change branches remotely. This is for anyone that may come across this in a search looking for this answer.
right click your project in Netbeans. -> Get -> Branch -> Switch To Branch.
In my case I switched to branch dev, this is the branch I wanted. Note, I lost all my changes. I had to do a history to add them back.
Note again, this takes a few minutes to run. It seems like it scans the project for all changes.
Now that you have your changes in, do the usual steps to push your changes. Now in the final part of the push, you should see the other branch, which was dev for me. Push changes up.
I hope this helps someone out there.
来源:https://stackoverflow.com/questions/9842954/changing-remote-branch-to-push-to-in-netbeans