Guide to Git
This article details how to use git to create branches and repositories for a project.
Git is an essential tool for any aspiring developer. It allows multiple iterations of a project to be saved, better known as version control. This prevents the accidental destruction of a project and produces a safe environment to work on the project.
The first step is to go to Github and create the repository itself. The correct .gitignore file must be used to prevent incorrect data from being uploaded so for unity you’d use the .gitignore for the unity editor.
Get Devan Morgan’s stories in your inbox
Join Medium for free to get updates from this writer.
Once the repository has been created, it can be connected to the project using the “init” command in gitbash.
Once the repo is created and connected, by using git remote -v you can check to make sure everything is connected properly.
Now that the connection is confirmed, use git add . to add all the new files for a push to the repo.
Now to title all the new data for the repo use git commit -m “Whatever describes the data you’re pushing”
Now for the final step, git push origin main is the last line of code you need to push the data to the repo.








