从 UCM ClearCase 迁移到 GIT [英] Migration from UCM ClearCase to GIT

查看:32
本文介绍了从 UCM ClearCase 迁移到 GIT的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在研究从 UCM ClearCase 迁移到 GIT.最初的意图是迁移所有 cc 分支及其各自的历史记录.

I am studying migrating from UCM ClearCase to GIT. The initial intention is to migrate all cc branches with their respective history.

类似的经验、最佳做法、任何提示或建议都会有很大帮助.

A similar experience, best practices, any tips or suggestions will be of great help.

推荐答案

最大的建议是在 UCM 组件中对 Git 存储库进行重组.

The biggest advice is in the UCM component to Git repository reorganization.

迁移通常是将(太大)大型 UCM 组件拆分为更精简的 Git 存储库的好机会.
由于 Git 是分布式,您需要记住您将克隆 完整 历史记录,因此进行重组很重要.

The migration is often a good opportunity to split (too) large UCM component into leaner Git repo.
Since Git is distributed, you need to keep in mind you will be cloning the full history around, so making that reorganization is important.

另一个建议是导入所有历史记录,而是将导入限制在最后一个重要的基线.(并将 ClearCase 保持为只读以供存档)

The other advice is to not import all the history, but to limit the import to the last significant baselines. (And keep ClearCase in read-only for archive)

您可以在从 ClearCase 迁移到 Git",更侧重于合并和分支组织的工作流程.

you can find other advices in "Moving from ClearCase to Git", more centered around the workflow of merges and branches organization.

在工具方面:我还没有找到.

In term of tool: I haven't found one.

我用:

  • 一个动态视图,用于重新定位到我要导出的(完整)基线
  • 我在动态视图中完成变基后更新的快照视图.
  • 一个 git repo 工作树,在将视图快照内容复制到其中之前,我将其完全清空
  • 一个 git repo 目录 (.git) 分开
  • 带有 --work-tree 的 git 命令引用更新的工作树.
  • a dynamic view for rebasing to thee (full) baseline I want to export
  • a snapshot view I update once the rebase is done in the dynamic view.
  • a git repo working tree which I empty completely before copying the view snap content into it
  • a git repo directory (.git) separate
  • git commands with --work-tree referencing the updated working tree.

我迭代了一些我需要从 ClearCase 导出/导入到 git 的基线.

And I iterate for the few baselines I need to export from ClearCase/import into git.

这篇关于从 UCM ClearCase 迁移到 GIT的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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