Search code examples
gitclearcaseclearcase-ucm

Merge changes from clearcase label to git branch


We are using clearcase and git for version control.
I have a situation where my fellow colleague has released few changes in a developer label in clear case. Now i want to pull those particular changes to git branch.

Is there a way to achieve this?


Solution

  • Yes, make a snapshot view with a config spec selecting that label.

    Then from your separate git working tree folder, do

    git --work-tree=path/to/snapshot/view add .
    
    # or, to limit files added:
    git --work-tree=path/to/snapshot/view add -- afile
    git --work-tree=path/to/snapshot/view add -- a folder
    

    That will instruct git to add files modifications from your snapshot view.