Version control – using Git with Godot
It happens to everyone – at a certain point, you’ll make a mistake. You’ll accidentally delete a file or just change some code in a way that breaks everything, but you can’t figure out how to get back to the working version.
The solution to this problem is version control software (VCS). The most popular VCS, used by developers all over the world, is Git. When you use Git with your projects, every change you make is tracked, allowing you to “rewind” time at any point and recover from unwanted changes.
Fortunately, Godot is very VCS-friendly. All the content of your game is kept in the project folder. Scenes, scripts, and resources are all saved in a human-readable text format that is easy for Git to track.
Git is typically used via a command-line interface, but there are graphical clients you can use as well. There is also a Git plugin available in Godot’s AssetLib that you can try...