I imported a package that has the same names of my scripts. It overwritten them without any warning whatsoever and now at least 6 hours of work is all gone, since my backup only goes up every 8 hours, and I’ve done A LOT since those 8 hours.
Is there a way I can recover those overwritten scripts or am I just simply fucked?
For now you have no real options. But I’d suggest implementing version control for next time. It doesn’t have to be much, you can do a commit to a local repository on your own computer if you like. But use version control.
I use a local GitHub repository. Made the same mistake myself last night. Took about five minutes to revert back to a previous version.
I know this probably isn’t relevant anymore, but this happened to me today. I did a search for the overwritten script, and there was luckily a recovery version of the script. Worth doing a search before throwing anything against the wall or out the window.