Game Development Reference
In-Depth Information
Step #4 - creating a Git repository
The next phase, after creating and configuring a Unity project, is to create the Git
database or repository itself that will track and maintain all changes to the Unity files.
The repository can be either remote (hosted on a network or external computer) or
local (hosted on the same computer). The repository will retain the original files and all
the changes done to them over time, allowing you to revert to earlier versions of files,
if required. The repository can also be shared and merged with other repositories for
file sharing. This chapter considers only local repositories, so let's create one now. To
do this, open the Unity project folder (the root folder) and then right-click to show the
Windows context menu. From the menu, choose Git Init Here :
Creating a Git repository
Once created, a new and hidden folder named .git will be generated. This folder
features all the repository files for the project. The icons for files and folders will
change to default red symbols, indicating that the files inside the project folder have
not yet been added to the repository, so Git cannot track changes made to them
(we'll deal with this soon). This is shown in the following screenshot:
Folders highlighted in red contain files not included
in the Git repository
 
Search WWH ::




Custom Search