如何将Clearcase开发历史整合到Git中? [英] How to integrate Clearcase developpement history into Git?

查看:222
本文介绍了如何将Clearcase开发历史整合到Git中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先:是的,我知道有几个CC - git迁移主题,但它们不提供任何对我的问题有价值的东西。
他们处理一些在本地使用git的方法,并推回到ClearCase,这或多或少与我想要做的相反。



我是负责整合2个生产基地的工作(我也是这些生产基地的程序员)。


  • Site#1 (我的)是集成完成的地方,我们使用git(单个存储库主/开发/主题分支)

  • 站点#2使用ClearCase ...




  • $ b

    有没有人遇到过这种情况,您建议将工作集成到我们的git历史中的工作流程是什么? p>

    解决方案

    是的,主要的建议是意识到,由于ClearCase按文件操作文件(与git有所有提交回购的内容),最好推送一个ClearCase视图的一致性状态。

    (请参阅 ClearCase和Git之间的更多差异是回答



    git repo知道在ClearCase视图中修改的常用方法是设置环境变量:



    $ ul
    $ GIT_DIR 到git仓库的路径(或上游仓库仓库的本地克隆)
  • GIT_WORK_TREE 到ClearCase视图的路径



通过这种方式,您可以获得git status,git add,git commit与ClearCase文件一起工作,同时更新您的git repo索引。



差异,添加和提交,当我有,例如,设置一个标签(或在我的情况下,一个完整的UCM基线 ),这标志着一组连贯的文件。然后这些修改就可以在git仓库中检测和导入。


First off : yes I know there are several CC--git migration subject, but they don't offer anything valuable to my problem. They deal with some ways to use git locally and push back to ClearCase, which is more or less the opposite of what I want to do.

I am responsible for integrating work from 2 production sites (I am also a programmer in one of these production site).

  • Site #1 (mine) is where integration is done and we use git (Single repository master/devel/topic branches)

  • Site #2 uses ClearCase...

Has anyone been in this situation and What do you suggest as a workflow to integrate their work into our git history ?

解决方案

Yes,the main advice is to realize that since ClearCase operates file by file (as opposed to git which has a commit for the all content of the repo), it is best to push to git a coherent states of the ClearCase view.
(See more differences between ClearCase and Git in this answer)

The usual way for a git repo to be aware of modifications done in a ClearCase view is to set the environment variables:

  • GIT_DIR to the path of the git repo (or a local clone of an upstream git repo)
  • GIT_WORK_TREE to the path of the ClearCase view

That way, you can get git status, git add, git commit working with the ClearCase file while updating your git repo index.

But I only check the diff, add and commit when I have, for instance, set a label (or in my case, an full UCM baseline), which marks a coherent set of files. Those modifications can then be detected and imported as a all in the git repo.

这篇关于如何将Clearcase开发历史整合到Git中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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