Warning: Use of undefined constant fb_replace_wp_version - assumed 'fb_replace_wp_version' (this will throw an Error in a future version of PHP) in /usr/home/heximal/data/www/heximal.ru/public/blog/wp-content/plugins/replace-wp-version/fb-re_wpversion.php on line 39
OSX: restore overwritten files | heximal blog

Warning: Cannot modify header information - headers already sent in /usr/home/heximal/data/www/heximal.ru/library/Heximal/Lang.php on line 43
Home > Apple > OSX: restore overwritten files

OSX: restore overwritten files

I’d like to share my happiness with you, the happinness related to the triumph of the human mind. Those moments in life there are extremely rare (at least in my one) …On holidays, I worked on a project in xCode IDE, and accidentally (!) completely overwrote one unit that I’ve been developing for two days. When I realized what I’ve done, I felt something very cold inside – my mind began to tear the hair on all parts of the body, evaluating dark prospects and fighting with a terrible feel of weakness. And suddenly, Behold! The panic began replacing with ghost hope born with the thought: actually HFS + (native OSX file system ) is versioning.
In theory this means that the file system stores all versions of the file, which means that you can find and restore to the correct version . But how? Half an hour of Google-search gave 100% result.So, hertr is my recipe “ How to restore an overwritten file in OSX “.
I couldn’t find how to do it right from xCode. So just open the Finder, find your file (which is overwritten), right mouse click it and select Open With -> TextEdit.app.
In a text editor, click the on the window title in the area of file name, then context menu appears. Select the View all versions, and …


I guess futher explanation is redundand

Categories: Apple Tags:
  1. January 22nd, 2013 at 16:09 | #1

    Плакал бы мой проект без этой статьи!


  2. Mir
    September 8th, 2016 at 17:35 | #2

    Saved! Works. In newer versions of macOS go to TextEdit -> File -> Revert To -> Browse All Versions…