Revert To Previous Commit (SOLVED)

I have just synced my project and somehow a critical script for the game was deleted, is there a way to view previous commits or somehow revert the project to a previous version?? Please help!! thanks.

If you are new to the Git versioning system then I’d recommend that you use a graphical tool to browse the Git history. There are many options available:

And more ofc. Once you have it installed and running you want to add your Defold game to the tool. You often do that using an option named Add Local Repository or something similar. Browse to the root of your Defold project and select Add. Now you have your Defold project in the tool and should be able to inspect history, revert and so on.

There’s also the command line git tool. Google for something like “git revert to previous commit” and you should get a lot of examples of how it can be done.

4 Likes

Thank you so much <33333333333333333333333333333333333 Crysis averted!

2 Likes