|
1 | 1 | # GitHub for Unity
|
2 | 2 |
|
3 |
| -[](https://gitter.im/unity-preview/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) |
4 |
| - |
5 |
| -Welcome to the GitHub for Unity preview! |
6 |
| - |
7 |
| -The GitHub for Unity extension brings Git and GitHub into Unity, integrating source control into your work with friendly and accessible tools and workflows. |
8 |
| - |
9 |
| -This software is currently on [Early Access](https://developer.github.com/early-access/) and is alpha quality. Please check the release notes for bugs and known issues, and make sure you have backups of your work. Use with care. |
10 |
| - |
11 |
| -When this software reached beta, we will be open sourcing it. |
12 |
| - |
13 |
| -For any questions or bug reports, you can [open an issue ](https://github.com/github-beta/unity-preview/issues/new) in our issue tracker, or send email to [[email protected]](mailto:[email protected]). |
14 |
| - |
15 |
| -[Eula](EULA.txt) |
16 |
| -[Credits](CREDITS.txt) |
| 3 | +The project has moved: [github-for-unity/Unity](https://github.com/github-for-unity/Unity) |
17 | 4 |
|
18 | 5 | [](img/screenshot.png)
|
19 | 6 | 
|
20 |
| - |
21 |
| - |
22 |
| -## Installing |
23 |
| - |
24 |
| -To install the extension, [download the package](https://github.com/github-beta/unity-preview/releases/tag/v0.11-alpha) from [the releases page](https://github.com/github-beta/unity-preview/releases) and double click on it. |
25 |
| - |
26 |
| -## Opening the GitHub window |
27 |
| - |
28 |
| -You can access the GitHub window by going to Windows -> GitHub. The window opens by default next to the Inspector window. |
29 |
| - |
30 |
| -### Initialize Repository |
31 |
| - |
32 |
| -[](img/initialize-repository.png) |
33 |
| - |
34 |
| -If the current Unity project is not in a git repository, the GitHub for Unity extension will offer to initialize the repository for you. This will: |
35 |
| - |
36 |
| -- Initialize a git repository at the Unity project root via `git init` |
37 |
| -- Initialize git-lfs via `git lfs install` |
38 |
| -- Set up a `.gitignore` file at the Unity project root. |
39 |
| -- Set up a `.gitattributes` file at the Unity project root with a large list of known binary filetypes (images, audio, etc) that should be tracked by LFS |
40 |
| -- Configure the project to serialize meta files as text |
41 |
| -- Create an initial commit with the `.gitignore` and `.gitattributes` file. |
42 |
| - |
43 |
| -### Authentication |
44 |
| - |
45 |
| -To set up credentials in git so you can push and pull, you can sign in to GitHub by going to `Window` -> `GitHub` -> `Account` -> `Sign in`. You only have to sign in successfully once, your credentials will remain on the system for all git operations in Unity and outside of it. If you've already signed in once but the Account dropdown still says `Sign in`, ignore it, it's a bug. |
46 |
| - |
47 |
| -[](img/signin.png) |
48 |
| - |
49 |
| -### Publish a new repository |
50 |
| - |
51 |
| -1. Go to [github.com](https://github.com) and create a new empty repository - do not add a license, readme or other files during the creation process |
52 |
| -2. Copy the **https** url shown in the creation page |
53 |
| -3. In Unity, go to `Windows` -> `GitHub` -> `Settings` and paste the url into the `Remote` textbox. |
54 |
| -3. Click `Save repository`. |
55 |
| -4. Go to the `History` tab and click `Push` |
56 |
| - |
57 |
| -### Commiting your work - Changes tab |
58 |
| - |
59 |
| -You can see which files have been changed and commit them through the Changes tab. `.meta` files will show up in relation to their files on the tree, so you can select a file for comitting and automatically have their `.meta` |
60 |
| - |
61 |
| -[](img/changes.png) |
62 |
| - |
63 |
| -### Pushing/pulling your work - History tab |
64 |
| - |
65 |
| -The history tab includes a `Push` button to push your work to the server. Make sure you have a remote url configured in the `Settings` tab so that you can push and pull your work. |
66 |
| - |
67 |
| -To receive updates from the server by clicking on the `Pull` button. You cannot pull if you have local changes, so commit your changes before pulling. |
68 |
| - |
69 |
| -[](img/history.png) |
70 |
| - |
71 |
| -### Branches tab |
72 |
| - |
73 |
| -[](img/branches.png) |
74 |
| - |
75 |
| -### Settings tab |
76 |
| - |
77 |
| -You can configure your user data in the Settings tab, along with the path to the git installation. |
78 |
| - |
79 |
| -Locked files will appear in a list in the Settings tab. You can see who has locked a file and release file locks after you've pushed your work. |
80 |
| - |
81 |
| -[](img/settings.png) |
82 |
| - |
83 |
| -## Windows |
84 |
| - |
85 |
| -The GitHub for Unity extension ships with a bundle of git and git-lfs, to ensure that you have the correct version. These will be installed into `%LOCALAPPDATA%\GitHubUnityDebug` when the extension runs for the first time. |
86 |
| - |
87 |
| -You can open a command line with the same git and git-lfs version that the extension uses by going to the GitHub -> Command line menu. |
88 |
| - |
89 |
| -Make sure a git user and email address are set in the `%HOME%\.gitconfig` file before you initialize a repository for the first time. You can set these values by opening your `%HOME%\.gitconfig` file and adding the following section, if it doesn't exist yet: |
90 |
| - |
91 |
| -``` |
92 |
| -[user] |
93 |
| - name = Your Name |
94 |
| - email = Your Email |
95 |
| -``` |
96 |
| - |
97 |
| -### Log files |
98 |
| - |
99 |
| -The extension log file can be found at `%LOCALAPPDATA%\GitHubUnityDebug\github-unity.log` |
100 |
| - |
101 |
| -## macOS |
102 |
| - |
103 |
| -The current release has limited macOS support. macOS users will need to install the latest [git](https://git-scm.com/downloads) and [git-lfs](https://git-lfs.github.com/) manually, and make sure these are on the path. You can configure the git location in the Settings tab on the GitHub window. |
104 |
| - |
105 |
| -Make sure a git user and email address are set in the `~/.gitconfig` file before you initialize a repository for the first time. You can set these values by opening your `~/.gitconfig` file and adding the following section, if it doesn't exist yet: |
106 |
| - |
107 |
| -``` |
108 |
| -[user] |
109 |
| - name = Your Name |
110 |
| - email = Your Email |
111 |
| -``` |
112 |
| - |
113 |
| -### Log files |
114 |
| - |
115 |
| -The extension log file can be found at `~/.local/share/GitHubUnityDebug/github-unity.log`. This is a temporary location and will be changed in the future. |
0 commit comments