参考自How to use Git for Unity source control?


1.首先在项目根目录新建一个.gitignore文件,可以从https://github.com/github/gitignore/blob/master/Unity.gitignore 这里获取

2.然后在Unity3D中进行设置:

For versions of Unity 3D v4.3 and up:
1.(Skip this step in v4.5 and up) Enable External option in Unity → Preferences → Packages → Repository.
2.Open the Edit menu and pick Project Settings → Editor:
Switch Version Control Mode toVisible Meta Files.
Switch Asset Serialization Mode toForce Text.
3.Save the scene and project from File menu.

Logo

开放原子开发者工作坊旨在鼓励更多人参与开源活动,与志同道合的开发者们相互交流开发经验、分享开发心得、获取前沿技术趋势。工作坊有多种形式的开发者活动,如meetup、训练营等,主打技术交流,干货满满,真诚地邀请各位开发者共同参与!

更多推荐