Clearcase:从Git迁移到ClearCase [英] Clearcase : Migrate from Git to ClearCase
问题描述
因为我们需要将我们的回购转换为CC并保留历史记录。
$ b $对于这种迁移没有真正的经验,但如果你需要保留历史,你可以轻松地为一个分支(比如master ),对于多个分支来说更难: git filter-branch --tree-filter'clearfsimport -preview -rec - nset。 m:\MyView\MyVob\ParentDirectory'HEAD
对于git仓库的每次提交,你做一个clearfsimport,为了添加或更新ClearCase动态视图中的文件(如在ClearCase中创建一个新的子目录结构? )
详细了解 filter-branch --tree
在重写git历史记录替换每个文件中的单词,通常用于重写历史记录,但在此用于其他目的( clearfsimport
)。
Could you please share your experience with Git to Clearcase migration ?
As we need to convert our repo to CC and keep history.
There is no real "experience" of such a migration, but if you need to keep the history, you can do so easily for one branch (like master), it is more difficult for multiple branches:
git filter-branch --tree-filter 'clearfsimport -preview -rec -nset . m:\MyView\MyVob\ParentDirectory' HEAD
For each commit of the git repo, you do a clearfsimport, in order to add or update files in a ClearCase dynamic view (as explained in "Creating a new subdirectory structure in ClearCase?")
See more about the filter-branch --tree
filter in "Rewrite git history replacing a word in every single file", used usually to rewrite history, but used here to for another purpose (clearfsimport
).
这篇关于Clearcase:从Git迁移到ClearCase的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!