我有一点问题.我们有自己的CMS,它使用git进行协作和版本控制.
现在我有两个git存储库A和B,A是一个项目,B是CMS本身.现在我想让B进入A,但是当我这样做时,我得到了很多合并冲突,冲突的解决方案总是使用来自B的东西.
现在我认为我需要的是
git merge <branch> -s recursive theirs <commit>
Run Code Online (Sandbox Code Playgroud)
因为我想合并,当存在合并冲突时,应该强制使用B中的解决方案.但是我无法让它工作.它一直在告诉我fatal: 'theirs' does not point to a commit.
在recursive theirs我发现在这里.
有谁知道我做错了什么?
u0b*_*6ae 62
您必须使用此表单来传递合并策略选项:
git merge -s recursive -Xtheirs # short options
git merge --strategy recursive --strategy-option theirs # long options
Run Code Online (Sandbox Code Playgroud)
还要确保你的版本支持-Xtheirs,这是一个非常新的功能(?)
| 归档时间: |
|
| 查看次数: |
24455 次 |
| 最近记录: |