Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XCode - Any way to recover code after "Discard Changes"?

I inadvertantly did a very stupid thing last night. I have been working on an iPad project for a couple of months and (even more stupidly) do not have a backup. By right-clicking on the project in XCODE, I mistakenly clicked "Discard Changes"

(stupidity reigns again) I did not have any commits since the initial and when I did the Discard Changes, it seems that it went all the way back to the initial commit, which if I am looking at things correctly looks like each file is as it was the very first time it was saved.

My question is: Is there a way to recover my work? Is it in the .git directory? Is a copy stored elsewhere? or as a last resort, any chance to recover some of the source text with an un-delete utility?

Thanks,

Bob

like image 311
bcreigh Avatar asked Nov 20 '12 17:11

bcreigh


1 Answers

For little clarification.. one can put back files from the trash as discard changes sends the file in the trash

like image 174
Ammar Mujeeb Avatar answered Oct 10 '22 20:10

Ammar Mujeeb