I have installed github desktop and created an account on github.com. I managed to create a github repository from my UE4 project on github desktop.
I have to publish it online to store this data, or is my commit data being stored on my hard drive ? (local repository)
If my project is corrupted, will i be able to get back to previous version (lastest commit) without publishing anything ?
Im working alone on this project so i dont need to share it with anyone.
Git is cool because the files are in two places…your local disk (repo) and on GitHub. So, if something whacky happens, you can do a pull from the orgin (GitHub)… Also, consider using SourceTree, its quite a bit nicer than GitHub desktop.
Did you know that the Git Source Control Provider plugin integrated in the Editor is capable of initializing you UE4 project (“git init”) with appropriate .gitignore (and .gitattributes for LFS) in the Source Control Connect/Login screen ?
You can work entirely in local, your “.git/” subdirectory will store all the history of your project. It is great to keep an online copy (or a remote stored on an external hard drive) but it is entirely optional.
Edit: if you stick with the most basic usage of Git, ie entirely local, the Git Plugin is able to do most of what you would ever need, from creating the initial local repository, to making commit, diffing assets through history…
You would still need a GUI (Github Desktop) or command line git only to create branch, push to a remote, or checkout an older commit.
Another thing, how can i create a new initial commit. Because once a month i save my whole project on a usb disk and at the same time i want to reinitialize github commits. I’d like to make a commit of the whole project, and add little commits everyday until the end of the month. How to do so please ?