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.

  • Get the error when creating the view “cleartool mkview -tag $view-name $view-name" with Clearcase UCM Plugin 1.7.4
  • CC delete option from CC explorer
  • How do I determine what files in my ClearCase local view have not yet been added to source control?
  • Adapt SCM Implementation with Subversion to ClearCase
  • Migrating away from Clearcase
  • How would you measure inserted / changed / removed code lines (LoC)?
  • Why do I get differences I can't get rid of when switching branches in git, and how to fix it?
  • git: Simple solution for pushing between working copies
  • Creating aliases in PowerShell for git commands?
  • Can't reset a file to a specific commit using Git
  • How to share Android Studio modules between projects with Git
  • Squash Commits Based On Author
  • 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.