Tool got reset to a past version of itself

A tool I have been working on just got reset to a version from months ago. I don’t know what I did to cause this but I just lost a lot of progress. It wasn’t just the script that got reset but the whole tool itself.