Unity Git 项目解决合并冲突

编程入门 行业动态 更新时间:2024-10-26 10:36:39

Unity Git 项目解决合并<a href=https://www.elefans.com/category/jswz/34/1770789.html style=冲突"/>

Unity Git 项目解决合并冲突

Unity项目使用git进行版本控制,最头疼的就是二进制文件。为此,Unity官方开发了YAMLMerge.exe工具,随着Unity一同发布。使用这个工具,需要进行一些设置。

  1. 安装一款合适的 fallback merge tool,作为Unity Automerge 失败后的补救措施。推荐Diff Merge
  2. (如果安装了Diff Merge可跳过这一步)打开Unity安装目录D:\Program Files\Unity\Editor\Data\Tools。找到这个文件mergespecfile.txt.
#
# UnityYAMLMerge fallback file
## Modify the next two lines if scene or prefab files should fallback
# on other that the default fallbacks listed below.
#
# %l is replaced with the path of you local version
# %r is replaced with the path of the incoming remote version
# %b is replaced with the common base version
# %d is replaced with a path where the result should be written to
# On Windows %programs% is replaced with "C:\Program Files" and "C:\Program Files (x86)" there by resulting in two entries to try out
# On OSX %programs% is replaced with "/Applications" and "$HOME/Applications" thereby resulting in two entries to try out# 这两行可替换
unity use "%programs%\YouFallbackMergeToolForScenesHere.exe" "%l" "%r" "%b" "%d"
pre

更多推荐

Unity Git 项目解决合并冲突

本文发布于:2024-02-12 05:49:36,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1686432.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:冲突   项目   Unity   Git

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!