Changing Remote Branch To Push To In Netbeans

爱⌒轻易说出口 提交于 2019-12-12 11:15:58

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!