Every project folder is backed by git, so you’ll be able to restore a previous commit on your machine. We don't yet offer a UI for reverting to previous versions, so you'll need to do this by the command line. 

First you need to click Developer -> Open in Terminal to open a new terminal session at your project folder path.

Then you can step back one revision by typing:
git reset —hard HEAD~1 

After stepping back one revision, try opening the project again in Haiku. If it's not the version you want, try again a few more times. You can also step back multiple revisions at once by changing the number after HEAD , e.g. HEAD~5  would take you back 5 revisions.

Another option would be to (carefully) do git reset --hard <sha1 of the last known good commit>, after first using git diff to figure out where things went wrong.

Did this answer your question?