改变远程分支推入Netbeans [英] Changing Remote Branch To Push To In Netbeans

查看:92
本文介绍了改变远程分支推入Netbeans的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是netbeans 7.1,我想更改远程分支以推送。我找不到这样做的方法。如果我做了拉,我可以看到分支(开发人员和主人)。但是当我推动时,我只看到我的本地,然后是一个原始分支(主)。



编辑:

我也可以在浏览回购时看到远程分支。我在这里看到了两个(dev)和(master)。



任何建议?

解决方案 div>

两个小时后,我已经想出了如何远程更改分支。这适用于任何可能在搜索中遇到此问题的人寻找此答案。



右键单击Netbeans中的项目。 - >获取 - >分支 - >切换到分支。



在我的情况下,我切换到分支开发,这是我想要的分支。请注意,我失去了所有的更改。我必须做一个历史记录才能将它们添加回来。



再次注意,这需要几分钟时间才能运行。似乎它会扫描项目中的所有更改。



现在您已完成更改,请执行通常的步骤来执行更改。现在在推动的最后部分,你应该看到另一个分支,这是我的开发。推动变化。



我希望这可以帮助那里的人。


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?

解决方案

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.

这篇关于改变远程分支推入Netbeans的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆