gpt4 book ai didi

ios - 为什么 .pbxproj 文件在版本控制系统中被视为二进制文件?

转载 作者:可可西里 更新时间:2023-11-01 04:43:24 26 4
gpt4 key购买 nike

很少有地方提到 .pbxproj 文件应该作为二进制文件在 cvs 或 git 中提交/导入。它看起来像文本格式的脚本文件。该建议应将其视为二进制文件的原因是什么?

最佳答案

作为mentioned here , pbxproj 不是真正可 merge 的,它是一个作为 JSON 管理的复杂属性列表。

通常的设置在 .gitattributes 中:

*.pbxproj -crlf -diff -merge

作为explained here :

This prevents Git from trying to fix newlines, show it in diffs, and excludes it from merges.

另一种方法是:

*.pbxproj binary merge=union

作为documented her e, 这个效果不好。

The problem was that braces would become out of place on a regular basis, which made the files unreadable. It is true that tho does work most of the time - but fails maybe 1 out of 4 times.

关于ios - 为什么 .pbxproj 文件在版本控制系统中被视为二进制文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36833172/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com