In the previous recipe, you created a project repository on the GitHub cloud server and then cloned it to your local machine. You then added the files from a (closed) Unity application to the cloned project repository folder. These new files were added and committed to a new snapshot of the folder, and the updated contents pushed up to the GitHub server.
Due to the way Unity works, it creates a new folder when a new project is created. Therefore, we had to turn the contents of the Unity project folder into a Git repository. There are two ways to do this:
- Copy the files from the Unity project to a cloned GitHub repository (so it has remote links set up for pushing back to the GitHub server).
- Make the Unity project folder into a Git repository, and then either link it to a remote GitHub repository or push the folder contents to the GitHub server and create a new online repository at that point in time.
For people new to Git and GitHub, the first procedure, which we...