Skip to content

Latest commit

 

History

History
32 lines (28 loc) · 3.42 KB

File metadata and controls

32 lines (28 loc) · 3.42 KB

Getting Started with GitHub for Unity

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 New Repository

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.

  1. If your Unity project doesn't yet have the GitHub plugin installed, follow these instructions for installing it.
  2. Click on the Initialize a git repository for this project button

screen shot 2018-05-18 at 9 39 13 am

And you should see the GitHub spinner:

screen shot 2018-05-18 at 9 39 23 am

3. The GitHub tab should reload with the following buttons: - Publish: Publish this repository to GitHub (Creating a new GitHub repository) - Account: Login to your GitHub account | Logout from your GitHub account or visit your profile on GitHub.com - Changes: Local changes that are not yet committed, with a dialog to commit those changes - History: A history of commits with title, time stamp, and commit author - Branches: A list of local and remote branches with the ability to create new branches, switch branches, or checkout remote branches - Settings: your git configuration (pulled from your local git credentials if they have been previously set), your repository configuration (you can manually put the URL to any remote repository here instead of using the Publish button to publish to GitHub), a list of locked files, your git installation details, and general settings to help us better help you if you get stuck

Connecting to an Existing Repository that already has the GitHub for Unity package

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.

  1. Clone the repository on the second machine (either through command line or with GitHub Desktop https://desktop.github.com/).
  2. Open Unity Editor and click Open.
  3. Browse to the location of the cloned repository and select the parent directory.
  4. When the project opens the plugin should be enabled. If you don't see the GitHub tab, enable it as above.
  5. Enter your credentials and verify that the system git location and remote origin link are correct.
  6. Submit and push the initial commit. For further questions see Issue#891