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

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

问题描述

我正在研究从UCM ClearCase迁移到GIT。最初的意图是将所有cc分支机构迁移到它们各自的历史记录。



类似的经验,最佳实践,任何提示或建议都将非常有帮助。

解决方案

最大的建议是在UCM组件中进行Git仓库重组。迁移通常是将大型UCM组件拆分为更精简的Git repo的好机会。

由于Git是分布式的,因此您需要记住您将克隆 full 历史记录,所以重组是非常重要的。



其他建议是 not import all 的历史,但将进口限制在最后的重要基线。 (并保持ClearCase为只读存档)



您可以在从ClearCase移动到Git ,更多地围绕合并和分支机构的工作流程进行。



< hr>

在工具方面:我还没有找到一个。



我用:




  • 一个动态视图,用于重定向您(完整)基线我想导出

  • 快照视图在动态视图中完成。
  • 一个git repo工作树,它在将视图捕捉内容复制到它之前完全清空

  • 一个git repo目录 .git )separate

  • git命令与 - 工作树引用更新后的工作树。



我重复了我需要从ClearCase / import导入到git中的几条基线。


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.

解决方案

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

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.

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)

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.

I use:

  • 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.

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

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

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