So recently I started a new Unity project and just yesterday decided that it was time to use github to back it up. I am fairly new to unity and completely new to github so I do have a couple questions about getting unity to work with github.
-
How do I import an existing unity project into github?
-
How do I “update” the github backup when I add new stuff in unity? (I cant seem to find any tutorials clearly stating how to do this)
-
When I need to go back and load an old version of the project off github (for example if something I added completely broke the game), how would I do this?
Hey,
I created a tutorial about a month ago that should answer your question exactly. It is made with Unreal Engine, but until minute 3:09 everything is the same. It should answer your question 1 and 2.
In the tutorial, I use GitHub and Anchorpoint, a Git client for artists that tracks all the changes you make in your Unity project, so you can upload them to GitHub.
Regarding point 3: If you use Anchorpoint, there is a “Restore Files” feature. There you can restore all files of a commit. Screenshot below.
Sorry for the late reply,
Thank you for the info, I now know how to use existing projects in github, but I do have one question about anchorpoint. Do I need to download it? I’m just wondering because right now I’m using github desktop.
Otherwise, Thank you. 
No worries, yeah you need to download it. It’s free to use. It’s similar to GitHub Desktop but has additional features when you work with large repos like Sparse Checkout.
Anchorpoint and GitHub Desktop can even run at the same time, because they are applying Git commands on the repository.