
该选项的联机帮助页面声明:
Run 3-way file level merge for text files,but take lines from both versions,instead of leaving conflict markers. This tends to leave the added lines in the resulting file in random order and the user should verify the result.
通常,对于将文件添加到项目的90%的情况,这应该是正常的。有人有这方面的经验吗?
解决方法 不是一个直接的经验,但是:>这个SO question真的建议再次合并.pbxproj文件。
The
pbxprojfile isn’t really human mergable.
While it is plain ASCII text,it’s aform of JsON. Essentially you want to treat it as a binary file.
(因此是gitignore solution)
其实Peter Hosey增加了评论:
It’s a 07003,not JsON. Same IDeas,different Syntax.
>然而,根据this question:
The truth is that it’s way more harmful to disallow merging of that .pbxproj file than it is helpful.
The.pbxprojfile issimply JsON(similar to XML). From experIEnce,just about the ONLY merge conflict you were ever get is if two people have added files at the same time. The solution in 99% of the merge conflict cases is to keep both sIDes of the merge.
所以一个合并的“联盟”(有一个gitattributes merge directive)是有意义的,但是做一些测试,看看它是否与上一个问题中提到的脚本相同。
>另见this question有潜在的冲突。
>见Wikipedia article on Property List
以上是内存溢出为你收集整理的objective-c – 我应该使用merge = union将.pbxproj文件与git进行合并吗?全部内容,希望文章能够帮你解决objective-c – 我应该使用merge = union将.pbxproj文件与git进行合并吗?所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)