There are often three states that you might be in when you are setting up your GitHub for Unity package with your Unity project:
- Setting up a brand new repository: You do not currently have your Unity project in a repository and you want to publish it to one.
- Connecting to an existing respository: Your Unity project is already in a repository, but you do not have the GitHub for Unity package installed within it yet.
- Opening a Unity project that already has the GitHub for Unity package: Your Unity project is already in a repository and it already has the GitHub for Unity package and you are trying to setup a new machine.
If you have a Unity project (new or existing) that is not yet connected to any remote repository, you can use the GitHub for Unity package to quickly intialize the repository and publish to a repository.
- If your Unity project doesn't yet have the GitHub plugin installed, follow these instructions for installing it.
- Click on the
Initialize a git repository for this project
button
GitHub for Unity does not have the functionality to clone projects (yet!).
- Clone the repository (either through command line or with GitHub Desktop https://desktop.github.com/).
- Open the project in Unity.
- Install GitHub for Unity if it is not already installed.
- The GitHub plugin should load with all functionality enabled.