使用 Egit 创建另一个本地分支
我的问题是使用 github 和 Egit。 Egit 获取了我所有的存储库分支,它让我选择一个初始分支,然后创建该分支的本地副本。我一直在尝试制作其他远程分支之一的另一个本地副本,但一直无法弄清楚如何做到这一点。那么有谁知道如何制作另一个远程分支的本地分支版本?
My problem is with using github and Egit. Egit fetched all of my repository branches and it had me select an initial branch which it then created a local copy of that branch. I've been trying to make another local copy of one of the other remote branches, but have been unable to figure out how to do this. So does anyone know how I can make a local branch version of another remote branch?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我发现如果你右键单击远程分支,并告诉它分支,它将创建远程分支的本地副本。我原本以为这会从该分支创建一个全新的分支,但它似乎只是在本地复制远程分支,这正是我想要做的。
I found if you right click on the remote branch, and tell it to branch, it will make a local copy of the remote branch. I originally thought this would make a brand new branch from that branch, but it seems to just make a copy of the remote branch locally, which is what I was trying to do.
右键单击该项目,然后在
Team
菜单中选择Branch...
。从那里您将能够创建一个新的本地分支Right-click on the project and select
Branch...
in theTeam
menu. From there you'll be able to create a new local branch右键单击项目->团队->切换到->新分支
这将使用 Egit 创建一个本地分支。
Right click on project -> Team -> Switch to -> New branch
This will create a local branch with Egit.