Recover deleted files from Xcode4
I am new to git and to Xcode, and mac in general, so here’s my question
I accidentally added my whole desktop to a project i was working on. When I wanted to delete the files, Xcode asked me if I wanted to delete them from disk and I said yes. The problem is that the project itself was in a folder inside my desktop and it took out everything. I had not committed my changes in the git local branch. Is there any way to undo what I did?
- Git branch not working for me in Xcode
- XCode automatically creating repository in Home folder
- How to commit a file to the repo but make it so its future commits are not allowed?
- working with Xcode and version control tool
- share git repo between two computers locally
- How can I disable Automatically managing signing option in jenkins
I appreciate whatever help I can get.
3 Solutions collect form web for “Recover deleted files from Xcode4”
If you have not committed, Git cannot help you bring back your project. You will have to look at other alternatives ( like TimeMachine if you had it setup? )
If anyone’s experiencing trouble with this problem, I nearly went back in my project and changed everything all over again but then remembered that it may not have been legit deleted yet. That is all to say that you should CHECK YOUR TRASH first! I don’t know why it didn’t occur to me until awhile after I had accidentally deleted it, but I ended up finding it in the Trash, so I’m thankful for that. Hope I’ve saved someone a whole lot of trouble!
Stop using the HDD immediately. Get Data Recovery help. Top of the line Data Recovery services may charge 1K-3K but can do an amazing job. Worth trying if your job is on the line.
Also, don’t lose heart. Doing it the second time (if it comes to that) will take much shorter time than the original one.