I accidentally deleted a 200 line file I spent a whole day working on. Instead of hitting copy I hit paste and lost everything. Any way to restore it? There isn’t an undo button.
For those who are interested in how I restored the file - there’s a Git repository built into every project, and you can run Git commands from the command line. I did a git log to look at the last few commits, and then git diff <hash> to look at the changes in each one. In this case, the second-last commit had the tictactoe.js with code in it, instead of the empty version. So I ran git checkout <hash> util/tictactoe.js to restore only that file to the earlier version, and then refresh to tell the editor to reload the file from disk.
Hey there @lisxpereira, welcome to the Glitch community! In the future, please don’t bump old posts, instead you can create a new post with your question.
As for the question you asked, there is now a rewind feature. You can go to the tools section, then on top there should be a rewind button which you can click to restore a deleted file from your project.