问题
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:
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.
来源:https://stackoverflow.com/questions/41930159/merge-changes-from-clearcase-label-to-git-branch