A step by step guide on signing up on GitHub to set up version control for your Unity projects.
So what is this all for? Version control is a way of keeping track of changes to your code and projects. As your projects grow in size and functionality, it is ideal to implement a way of keeping track of the progress you’ve made by using online repositories. Additionally, projects can be easily shared across team members and branched based on need. These repositories help in coordinating development and provide a way to revert to earlier versions should mistakes be made. There are several solutions for this online but we will be concentrating on one of the most popular ones.
With that in mind, lets get started with setting up a GitHub account.
First step as always is to head over to the GitHub website.
Now that we’re here, its time to sign up for a new account. You can begin the process by selecting SIGN UP on the top right.
You will now be redirected to to a page where you can input your desired username, email address and password to create a new account. You will be told whether or not the account name you have chosen is available on the site. Think carefully about this and treat it with the respect it deserves. You can also choose to essentially sign up for a GitHub newsletter. Your choice entirely.
Next, your humanity will be put to the test with a quick little Catpcha verification. Complete it and the CREATE ACCOUNT button will become active.
Note: by creating your account you are automatically accepting the terms of service and the GitHub Privacy Statement. Make sure you have read through them
Once you have created your account you will be asked to verify your email address.
You will find that GitHub has sent you an email with a simple button to confirm your address. Simply click on the button to be redirected to the GitHub site again.
Now that you have verified your email address, GitHub will give you the option to perform a task. In our case we want to jump right into CREATE A REPOSITORY. You can skip this step for now, but ultimately this is the goal, so lets just march on ahead.
The next step is to name your repository. GitHub will inform you if the name is available, but since it’s under your username, pretty much any name should be available. Its best to choose a name that is relevant to your project. You can add a short description if you wish. You can also choose whether or not this repository will be public or private. This option can be changed later at any time. For now I will choose private.
Finally to complete the setup we will add a gitignore to our repository. Gitignore is a text file that will allow us filter out some unnecessary files and folders in our commits.
IMPORTANT: Make sure you click on the dropdown and select Unity as the template.
Once this is done, you can just click on CREATE REPOSITORY.
And voilà! our repository is online and ready for our project!
Congratulations your new repository is now ready to be linked to your Unity project.