Developer accidentally deletes 3 months of work with Visual Studio Code 9 years ago
On mac os you have system built-in version control on most text based file by default. I recovered lost work with it in a discard once (discarded on the wrong branch and no stash to reapply). https://support.apple.com/kb/PH18862?locale=en_US