14.11.2017, 21:08
Just restore your most recent backup. Yes, you may loose a few hours of work on one file, but really that shouldn't be a major problem. Only an idiot puts all their code in one place without backups or source control, so I am assuming that your code is of course spread out among many files (good separation of concerns) and on git (or similar). So I don't see the problem.
