Clearcase : Migrate from Git to ClearCase

Could you please share your experience with Git to Clearcase migration ?

As we need to convert our repo to CC and keep history.

  • Migration from UCM ClearCase to GIT
  • Not getting the coverage on new code in sonar dashboard
  • How to use clearfsimport to import files into an empty VOB
  • Jenkins Composite baseline with ClearCase
  • How to integrate Clearcase developpement history into Git?
  • How to find all checkedout files with ClearCase cleartool?
  • HEAD~ vs HEAD^ vs HEAD@{} also known as tilde vs caret vs at sign
  • Git: Remove credentials from repository
  • Migrating from TFS to Git
  • git-lfs: where are the file stored ? how to get them?
  • Finding merge commits from tag across branches in git
  • When to use multiple components within a stream in RTC source control
  • One Solution collect form web for “Clearcase : Migrate from Git to ClearCase”

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

    Git Baby is a git and github fan, let's start git clone.