Merge changes from clearcase label to git branch

2019-02-20 03:51发布

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?

1条回答
贼婆χ
2楼-- · 2019-02-20 04:05

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.

查看更多
登录 后发表回答