that sucks, but its a way of knowing you should do backups and uploading the code to github xd, hope you get it back
That's what I've been doing. Unfortunately, the backup on GitHub is not the latest version.