版本控制
Version Control Systems or VCS (Git, SVN, Perforce, Mercurial, Bazaar, CVS, TFS, etc.) are used to manage changes to code and data, and enable teams to coordinate their development efforts. To make tracking of changes efficient and reduce the amount of disk space required, you should know which files must be tracked by the VCS and which can be ignored.版本控制系统或VCS(Git, SVN, Perforce, Mercurial, Bazaar, CVS, TFS等)用于管理代码和数据的更改,并使团队能够协调其开发工作。为了高效地跟踪更改并减少所需的磁盘空间,您应该知道VCS必须跟踪哪些文件,哪些文件可以忽略。
Ignore List忽略列表#
In any project there are files and folders that are not subject to version control. These can be files created by the compiler, *.obj, *.tlog, or an output folder used to store binary executables.在任何项目中,都有不受版本控制的文件和文件夹。这些可以是由编译器创建的文件,*.obj,*.tlog或用于存储二进制可执行文件的输出文件夹。
The following files and folders in you project's root can be ignored, as they are generated automatically on your disk:项目根目录中的以下文件和文件夹可以忽略,因为它们是在磁盘上自动生成的:
- .thumbnails
- bin
- obj
- junk
- data/configs/unigine.user
- launch_debug.bat
- launch_editor.bat
- launch_release.bat
Files and Folders to Add to Version Control要添加到版本控制的文件和文件夹#
The following files and folders should be subject to version control:以下文件和文件夹应受版本控制:
- data folder with all its contents
data 文件夹及其所有内容,但存储在data/configs文件夹中的unigine.user文件除外。If you do not want to share the editor and application settings with other team members, add the following configuration files to .gitignore:
- data/configs/unigine.user
- data/configs/default.user
- data/.editor2/*
- source 文件夹内容(上述元素除外)
This folder is created only for projects that use C++ or C# API.仅为使用C ++或C#API的项目创建此文件夹。
- *.project文件(对于C#项目,则为*.csproj)