Which Unity project files can be ignored for version control?

吃可爱长大的小学妹 提交于 2019-12-21 05:56:17

问题


Which files / directories in a unity project can be safely ignored when checking into version control (SVN / GIT)?

Temp/

/Library/cache/


回答1:


First set Edit -> Project Settings -> Asset Serialization = force text

Then use this file for git: https://github.com/github/gitignore/blob/master/Unity.gitignore (copy in the main folder near Assets, Library etc.). If using svn stop using svn.

And yes, the .meta files are necessary.




回答2:


gitgnore.io is a great resource for this. Select Unity, your IDE, and your OS.



来源:https://stackoverflow.com/questions/27127601/which-unity-project-files-can-be-ignored-for-version-control

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!