To create and clone a GitHub repository, perform the following steps:
- Install Git for the command line on your computer. As usual, it is good practice to do a system backup before installing any new application: https://git-scm.com/book/en/v2/Getting-Started-Installing-Git.
- Test that you have Git installed by typing git at the command line in a terminal window. You should see text help displayed, showing a list of possible command options:
Figure 8.9 – Testing Git at the command line
- Open a web browser and navigate to your GitHub Repositories page:
Figure 8.10 – Creating new GitHub repository
- Click the green button to start creating a new repository (such as my-github-demo):
- Enter a name for the new repository, such as my-github-demo.
- Click the option to create a README file (important, so you can clone the files to a local computer).
- Add a .gitignore file – choose the Unity one:
Figure 8.11 – Adding a README and .gitignore file
...