Game code Github Templete

Unity 的 .gitignore 设置

新建 GiHub 仓库:http://github.com/new

配置 Unity 以进行版本控制

  • 打开编辑器设置窗口。
    • Edit > Project Settings > Editor
  • 使.meta文件可见,以避免损坏的对象引用。
    • Version Control / Mode: “Visible Meta Files”
  • 使用纯文本序列化可以避免无法解决的合并冲突。
    • Asset Serialization / Mode: “Force Text”
  • 保存您的更改。
    • File > Save Project

使用 Git 大文件存储

1
# 3D models
2
*.3dm filter=lfs diff=lfs merge=lfs -text
3
*.3ds filter=lfs diff=lfs merge=lfs -text
4
*.blend filter=lfs diff=lfs merge=lfs -text
5
*.c4d filter=lfs diff=lfs merge=lfs -text
6
*.collada filter=lfs diff=lfs merge=lfs -text
7
*.dae filter=lfs diff=lfs merge=lfs -text
8
*.dxf filter=lfs diff=lfs merge=lfs -text
9
*.fbx filter=lfs diff=lfs merge=lfs -text
10
*.jas filter=lfs diff=lfs merge=lfs -text
11
*.lws filter=lfs diff=lfs merge=lfs -text
12
*.lxo filter=lfs diff=lfs merge=lfs -text
13
*.ma filter=lfs diff=lfs merge=lfs -text
14
*.max filter=lfs diff=lfs merge=lfs -text
15
*.mb filter=lfs diff=lfs merge=lfs -text
16
*.obj filter=lfs diff=lfs merge=lfs -text
17
*.ply filter=lfs diff=lfs merge=lfs -text
18
*.skp filter=lfs diff=lfs merge=lfs -text
19
*.stl filter=lfs diff=lfs merge=lfs -text
20
*.ztl filter=lfs diff=lfs merge=lfs -text
21
22
# Audio
23
*.aif filter=lfs diff=lfs merge=lfs -text
24
*.aiff filter=lfs diff=lfs merge=lfs -text
25
*.it filter=lfs diff=lfs merge=lfs -text
26
*.mod filter=lfs diff=lfs merge=lfs -text
27
*.mp3 filter=lfs diff=lfs merge=lfs -text
28
*.ogg filter=lfs diff=lfs merge=lfs -text
29
*.s3m filter=lfs diff=lfs merge=lfs -text
30
*.wav filter=lfs diff=lfs merge=lfs -text
31
*.xm filter=lfs diff=lfs merge=lfs -text
32
33
# Fonts
34
*.otf filter=lfs diff=lfs merge=lfs -text
35
*.ttf filter=lfs diff=lfs merge=lfs -text
36
37
# Images
38
*.bmp filter=lfs diff=lfs merge=lfs -text
39
*.exr filter=lfs diff=lfs merge=lfs -text
40
*.gif filter=lfs diff=lfs merge=lfs -text
41
*.hdr filter=lfs diff=lfs merge=lfs -text
42
*.iff filter=lfs diff=lfs merge=lfs -text
43
*.jpeg filter=lfs diff=lfs merge=lfs -text
44
*.jpg filter=lfs diff=lfs merge=lfs -text
45
*.pict filter=lfs diff=lfs merge=lfs -text
46
*.png filter=lfs diff=lfs merge=lfs -text
47
*.psd filter=lfs diff=lfs merge=lfs -text
48
*.tga filter=lfs diff=lfs merge=lfs -text
49
*.tif filter=lfs diff=lfs merge=lfs -text
50
*.tiff filter=lfs diff=lfs merge=lfs -text
51
52
# Collapse Unity-generated files on GitHub
53
*.asset linguist-generated
54
*.mat linguist-generated
55
*.meta linguist-generated
56
*.prefab linguist-generated
57
*.unity linguist-generated

Commit 规范和格式化

1
npm install -g commitizen cz-conventional-changelog
2
echo '{ "path": "cz-conventional-changelog" }' > ~/.czrc

下载

游戏

Release: https://github.com/GameDevLog/GameDevLogTemplete/releases

源码

GitHub: https://github.com/GameDevLog/GameDevLogTemplete

本文标题:Game code Github Templete

文章作者:iOSDevLog

发布时间:2019年12月03日 - 19:03:57

最后更新:2019年12月10日 - 19:37:43

原始链接:https://game.iosdevlog.com/2019/12/03/Templete/

许可协议: 署名-非商业性使用-禁止演绎 4.0 国际 转载请保留原文链接及作者。

iOSDevLog wechat
欢迎您扫一扫上面的微信公众号,订阅我的博客!