推荐的 Eclipse Egit 工作流程

发布于 2024-11-28 12:00:20 字数 747 浏览 3 评论 0原文

集团,

我们使用 Borland Starteam 作为我们的源代码控制系统。我开发 Java 代码并使用 Eclipse 作为我的 IDE。我最近开始使用 EGit 作为我的个人源代码控制系统,并提出了以下工作流程来简化我的开发工作,其中包括检查代码、添加功能、修复错误、测试、与 Star 团队中的父源代码合并(巨大的努力)如果很多人同时进行了更改),构建、测试和安装。我想使用 EGit 来简化编译、合并和测试过程,同时进行开发,以及在进行大合并之后安装代码之前。这就是我想出的办法。

  1. 创建文件系统文件夹 - “Master”和“Work”
  2. 将 Starteam 中的新源文件夹结构检入“Work”。
  3. 创建名为“Work”的 Eclipse 工作区,并从“Work”文件夹导入 Eclipse 项目,将这些项目添加到 Egit 存储库。
  4. 在“工作”工作区中添加功能/修复错误。测试等。准备安装时创建补丁。现在是时候进行大合并、重建、再次测试了。
  5. 在安装当天检查 Starteam 的最新源代码到文件系统中的“Master”文件夹中。
  6. 从“Master”文件夹中的源创建 Eclipse 工作区“Master”,导入 Eclipse 项目并将其添加到新创建的 Egit 存储库中。
  7. 将补丁导入“Master”工作区,执行合并。修复编译错误、测试等。
  8. 安装。

这个工作流程高效吗? Egit 中是否有更高级的功能可以进一步简化此操作?

感谢您的任何指导。 兰吉特

Group,

We use Borland Starteam as our source control system. I develop Java code and use Eclipse as my IDE. I recently started using EGit as my personal source control system and came up with the following workflow to streamline my dev work, which consists of checking out code, adding features, fixing bugs, testing, merging with the parent source in Star team (huge effort if lots of people have made changes in the meanwhile), build, test, and install. I want to use EGit to simplify the compile, merge and test process, while developing and also just before code install after big merges are made. This is what I have come up with.

  1. Create file system folders - 'Master' and 'Work'
  2. Check out fresh source folder structure from Starteam into 'Work'.
  3. Create Eclipse workspace called 'Work' and import Eclipse projects from 'Work' folder add those projects to an EGit repository.
  4. Add features/fix bugs while in 'Work' workspace. Test, etc. Create a patch when ready to install. Now its time to make the big merge, rebuild, test again.
  5. Check out fresh source from Starteam on the day of the install into 'Master' folder in the file system.
  6. Create Eclipse workspace 'Master' from source in 'Master' folder, import Eclipse projects and add those to a newly created EGit repository.
  7. Import patch into 'Master' workspace, perform merge. Fix compile errors, test, etc.
  8. Install.

Is this workflow efficient? Are there more advanced features in EGit that would simply this any further?

Thanks for any guidance.
Ranjit

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

心如狂蝶 2024-12-05 12:00:20

除非我理解错误,否则看起来您正在使用 Eclipse 工作区来代替现有的 git 分支功能。如果我是对的,Egit 可以自行管理所有分支,因此您无需来回切换工作空间。您可以创建然后合并分支,并在单个项目中完成所有其他有趣的事情。

这里的工作流程都是 git 的。可以在这里找到一篇关于维护合理工作流程的好文章:http://sandofsky.com/blog/ git-workflow.html

Unless I'm understanding this wrong, it looks like you are using eclipse workspaces in place of the existing git branch functionality. Egit, if I'm correct, can manage branches all on its own so you don't need to run back and forth switching workspaces. You can create then merge branches and do all the other fun stuff within a single project.

The workflow from here is all git. A good article on maintaining a sane workflow can be found here: http://sandofsky.com/blog/git-workflow.html

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文