Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit b0ab6ce

Browse files
authored
Making the readme more readable
Reorg of the readme with contribution and build information on top and a table of contents
1 parent b458c1b commit b0ab6ce

File tree

1 file changed

+85
-61
lines changed

1 file changed

+85
-61
lines changed

README.md

Lines changed: 85 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,97 @@ The GitHub for Unity extension brings [Git](https://git-scm.com/) and GitHub int
88

99
**Please note:** this software is currently alpha quality. Please refer to the [list of known issues](https://github.com/github-for-unity/Unity/issues?q=is%3Aissue+is%3Aopen+label%3Abug), and make sure you have backups of your work before trying it out.
1010

11+
#### Table Of Contents
12+
13+
[Installing GitHub for Unity](#installing-github-for-unity)
14+
* [Requirements](#requirements)
15+
* [Installation](#installation)
16+
17+
[Building and Contributing](#building-and-contributing)
18+
19+
[Log files and Known issues](#log-files-and-known-issues)
20+
* [Windows](#windows)
21+
* [macOS](#macos)
22+
23+
[Quick Guide to GitHub for Unity](#quick-guide-to-gitHub-for-unity)
24+
* [Opening the GitHub window](#opening-the-github-window)
25+
* [Initialize Repository](#initialize-repository)
26+
* [Authentication](#authentication)
27+
* [Publish a new repository](#publish-a-new-repository)
28+
* [Commiting your work - Changes tab](#commiting-your-work---changes-tab)
29+
* [Pushing/pulling your work - History tab](#pushingpulling-your-work---history-tab)
30+
* [Branches tab](#branches-tab)
31+
* [Settings tab](#settings-tab)
32+
[More Resources](#more-resources)
33+
[License](#license)
34+
1135
## Installing GitHub for Unity
1236

1337
### Requirements
1438

15-
- [Unity 5.4 - 5.6](https://store.unity.com/download). Personal edition is fine.
39+
- We've only tested the extension so far on Unity 5.4 to 5.6. There's currently an blocker issue opened for 5.3 support, so we know it doesn't run there. There are some issues for 2017.x, so it may or may not run well on that version. Personal edition is fine.
1640

1741
### Installation
1842

1943
To install the extension, download the latest package from [the releases page](https://github.com/github-for-unity/Unity/releases) and double click on it.
2044

21-
#### Opening the GitHub window
45+
## Building and Contributing
46+
47+
The [CONTRIBUTING.md](CONTRIBUTING.md) document will help you get setup and familiar with the source. The [documentation](docs/) folder also contains more resources relevant to the project.
48+
49+
Please read the [How to Build](docs/contributing/how-to-build.md) document for sinformation on how to build GitHub for Unity.
50+
51+
If you're looking for something to work on, check out the [up-for-grabs](https://github.com/github-for-unity/Unity/issues?q=is%3Aopen+is%3Aissue+label%3Aup-for-grabs) label.
52+
53+
## Log files and Known issues
54+
55+
### Windows
56+
57+
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.
58+
59+
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.
60+
61+
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:
62+
63+
```
64+
[user]
65+
name = Your Name
66+
email = Your Email
67+
```
68+
69+
The extension log file can be found at `%LOCALAPPDATA%\GitHubUnityDebug\github-unity.log`
70+
71+
#### macOS
72+
73+
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.
74+
75+
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.
76+
77+
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:
78+
79+
```
80+
[user]
81+
name = Your Name
82+
email = Your Email
83+
```
84+
85+
## I have a problem with GitHub for Unity
86+
87+
First, please search the [open issues](https://github.com/github-for-unity/Unity/issues?q=is%3Aopen)
88+
and [closed issues](https://github.com/github-for-unity/Unity/issues?q=is%3Aclosed)
89+
to see if your issue hasn't already been reported (it may also be fixed).
90+
91+
If you can't find an issue that matches what you're seeing, open a [new issue](https://github.com/github-for-unity/Unity/issues/new)
92+
and fill out the template to provide us with enough information to investigate
93+
further.
94+
95+
## Quick Guide to GitHub for Unity
96+
97+
### Opening the GitHub window
2298

2399
You can access the GitHub window by going to Windows -> GitHub. The window opens by default next to the Inspector window.
24100

25-
#### Initialize Repository
101+
### Initialize Repository
26102

27103
![Initialize repository screenshot](https://user-images.githubusercontent.com/121322/27644875-7fc6302a-5bd9-11e7-98d0-c09b2e450503.png)
28104

@@ -35,98 +111,46 @@ If the current Unity project is not in a Git repository, the GitHub for Unity ex
35111
- Configure the project to serialize meta files as text
36112
- Create an initial commit with the `.gitignore` and `.gitattributes` file.
37113

38-
#### Authentication
114+
### Authentication
39115

40116
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.
41117

42118
![Authentication screenshot](https://user-images.githubusercontent.com/121322/27644895-8f22f904-5bd9-11e7-8a93-e6bfe0c24a74.png)
43119

44-
#### Publish a new repository
120+
### Publish a new repository
45121

46122
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.
47123
2. Copy the **https** URL shown in the creation page
48124
3. In Unity, go to `Windows` -> `GitHub` -> `Settings` and paste the url into the `Remote` textbox.
49125
3. Click `Save repository`.
50126
4. Go to the `History` tab and click `Push`.
51127

52-
#### Commiting your work - Changes tab
128+
### Commiting your work - Changes tab
53129

54130
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`
55131

56132
![Changes tab screenshot](https://user-images.githubusercontent.com/121322/27644933-ab00af72-5bd9-11e7-84c3-edec495f87f5.png)
57133

58-
#### Pushing/pulling your work - History tab
134+
### Pushing/pulling your work - History tab
59135

60136
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.
61137

62138
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.
63139

64140
![History tab screenshot](https://user-images.githubusercontent.com/121322/27644965-c1109bba-5bd9-11e7-9257-4fa38f5c67d1.png)
65141

66-
#### Branches tab
142+
### Branches tab
67143

68144
![Branches tab screenshot](https://user-images.githubusercontent.com/121322/27644978-cd3c5622-5bd9-11e7-9dcb-6ae5d5c7dc8a.png)
69145

70-
#### Settings tab
146+
### Settings tab
71147

72148
You can configure your user data in the Settings tab, along with the path to the Git installation.
73149

74150
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.
75151

76152
![Settings tab screenshot](https://user-images.githubusercontent.com/121322/27644993-d9d325a0-5bd9-11e7-86f5-beee00e9e8b8.png)
77153

78-
#### Windows
79-
80-
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.
81-
82-
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.
83-
84-
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:
85-
86-
```
87-
[user]
88-
name = Your Name
89-
email = Your Email
90-
```
91-
92-
##### Log files
93-
94-
The extension log file can be found at `%LOCALAPPDATA%\GitHubUnityDebug\github-unity.log`
95-
96-
#### macOS
97-
98-
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.
99-
100-
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:
101-
102-
```
103-
[user]
104-
name = Your Name
105-
email = Your Email
106-
```
107-
108-
##### Log files
109-
110-
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.
111-
112-
## I have a problem with GitHub for Unity
113-
114-
First, please search the [open issues](https://github.com/github-for-unity/Unity/issues?q=is%3Aopen)
115-
and [closed issues](https://github.com/github-for-unity/Unity/issues?q=is%3Aclosed)
116-
to see if your issue hasn't already been reported (it may also be fixed).
117-
118-
If you can't find an issue that matches what you're seeing, open a [new issue](https://github.com/github-for-unity/Unity/issues/new)
119-
and fill out the template to provide us with enough information to investigate
120-
further.
121-
122-
## How can I contribute to GitHub for Unity?
123-
124-
The [CONTRIBUTING.md](./CONTRIBUTING.md) document will help you get setup and
125-
familiar with the source. The [documentation](docs/) folder also contains more
126-
resources relevant to the project.
127-
128-
If you're looking for something to work on, check out the [up-for-grabs](https://github.com/github-for-unity/Unity/issues?q=is%3Aopen+is%3Aissue+label%3Aup-for-grabs) label.
129-
130154
## More Resources
131155

132156
See [unity.github.com](https://unity.github.com) for more product-oriented

0 commit comments

Comments
 (0)