6
我试图将合并策略添加到我的存储库中的.gitattributes文件中。 但是,当我合并另一个分支与该(不同)文件时,会导致合并冲突 - 自动合并失败。.gitattributes合并策略
下面是我试图做的。
.gitattributes:
backend/library/project/config.php merge=ours
分行:
- 生产
- 分期
在生产中我有config.php'A和分期我的config.php “B.
> git checkout production
> git merge staging
> Auto-merging backend/library/project/config.php
> CONFLICT (content): Merge conflict in backend/library/project/config.php
> Automatic merge failed; fix conflicts and then commit the result.
我尝试添加该行的.git /信息/属性以及加引号..merge =“我们的”。
有没有人知道我做错了什么? (GIT版本是1.7.4.4) THX
不要链接到SO问题,请将问题标记为重复。 – givanse 2014-02-12 21:33:55