I use git for almost all my work but I’m bit confused how editor source control works in UE4.
What I would like to know is if I use those checkout controls I’m guaranteed I can revive the project if something goes wrong?
Or is it better to just use the git ‘normal’ way on project folder?
I just use the basic console commands in cmd line. Git Desktop is also a possibility but cmd line isn’t that hard because in git-hub when you create repositories it gives you the command line code describing exactly how to address and control things. Create one master backup local folder and then once you have two working folders git init one of them and leave the other alone just in case, stay away from the UE4 sc plugin for now.
Git cannot do locking, because it doesn’t have a single master repository. You can make Git changes even when you’re not on a network. You can push your Git changes to whatever other Git repositories you choose to. Some of them may be configured as “git remotes” (which are like named shortcuts) and others may just be typed in at the time of push. Similarly, you can pull from wherever, whenever. This is the strength of Git, for the cases where it works, and also a weakness of Git, for cases it can’t deal with.
If you want to use Git the best, change binary formats to structured text, or write a custom diff/merge tool for the binary file formats for git to use…
If you absolutely need central locking, Perforce is going to work much better for you – but then you lose the things that Git is great at
Text serialization by itself wouldn’t enable diff/merging. The way the data in blueprints is structured would need to be overhauled to make that possible, AFAIK, otherwise you just end up with a mangled blueprint: readable, but useless. So it’s not that simple.
I would agree with some of the others in this thread that using Git inside of UE4 is icky. I do use git, but when I’m done modifying stuff I jut go to the client and commit the changes. I use SourceTree with Microsoft Visual Team Services… MS is cool because you have unlimited private repos for under 5 developers.