-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitattributes
More file actions
42 lines (38 loc) · 1.03 KB
/
Copy path.gitattributes
File metadata and controls
42 lines (38 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# ============================================
# Unity 项目 .gitattributes(未启用 LFS — 当前无大二进制资源)
# 以后若加入大资源,可改用 Git LFS
# ============================================
# 默认自动识别文本并规范化行尾
* text=auto
# 源码 / 文本
*.cs text diff=csharp
*.cginc text
*.shader text
*.json text
*.xml text
*.md text
# Unity YAML 文件:文本存储 + 智能合并(需在 Unity 配置 unityyamlmerge 合并驱动)
*.unity merge=unityyamlmerge eol=lf
*.prefab merge=unityyamlmerge eol=lf
*.asset merge=unityyamlmerge eol=lf
*.mat merge=unityyamlmerge eol=lf
*.anim merge=unityyamlmerge eol=lf
*.controller merge=unityyamlmerge eol=lf
*.meta merge=unityyamlmerge eol=lf
# 二进制资源:不做行尾转换
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.psd binary
*.tga binary
*.fbx binary
*.obj binary
*.wav binary
*.mp3 binary
*.ogg binary
*.aif binary
*.ttf binary
*.otf binary
*.dll binary
*.unitypackage binary