Clearcase : Migrate from Git to ClearCase

百般思念 提交于 2019-12-06 05:47:11
VonC

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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!