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 projectbutton
If you have an existing Unity project which already has the GitHub for Unity plugin installed and is connected to a remote repository (with the initial commit), you can access the project from another machine.
- Clone the repository on the second machine (either through command line or with GitHub Desktop https://desktop.github.com/).
- Open Unity Editor and click Open.
- Browse to the location of the cloned repository and select the parent directory.
- When the project opens the plugin should be enabled. If you don't see the GitHub tab, enable it as above.
- Enter your credentials and verify that the system git location and remote origin link are correct.
- Submit and push the initial commit. For further questions see Issue#891

