多个Eclipse项目中的多个Git分支 [英] Multiple Git Branches in Multiple Eclipse Projects

查看:427
本文介绍了多个Eclipse项目中的多个Git分支的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在从Subversion转换为Git,而在Git中挣扎的一件事是切换分支的方法。

We're in the process of converting from Subversion to Git and one thing that I'm struggling with in Git is the method of switching branches.

我的理解是在命令行,并在Eclipse中使用EGit,切换到不同的分支将将Eclipse工作空间文件夹的内容替换为所需分支的内容。这意味着任何一个时间只能有一个分支。

My understanding is that at both at the command line and using EGit in Eclipse that switching to a different branch replaces the contents of the Eclipse workspace folder with that of the desired branch. This implies only one branch can be open at any one time.

在SVN中,我可以安排我的Eclipse工作区类似于:

In SVN I could arrange my Eclipse workspace similar to:

Workspace/
   Project1Branch/
   Project2Branch/
   Project3/
   Project4Branch/

是否可以在同一个Eclipse / Egit工作区(或任何其他环境中)同时打开多个Git分支? p>

Is it possible to have multiple Git branches open at the same time in the same Eclipse/Egit workspace ( or any other environment for that matter )?

推荐答案

从@MarkLeightonFisher经过多次测试和理智检查后,似乎不是可能有多个Git分支在同一个Eclipse工作区中同时打开。

After much testing and a sanity check from @MarkLeightonFisher it seems it is not possible to have multiple Git branches open in the same Eclipse workspace at the same time.

这篇关于多个Eclipse项目中的多个Git分支的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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