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?

I appreciate whatever help I can get.

  • How to delete the content of github repository?
  • XCode 5 does not show full SVN history for repo
  • why should .pbxproj file be treated as binary in version control systems?
  • File in the project not seen by Xcode after Git pull
  • Xcode snapshot fails when using git lfs
  • Xcode project (zip downloaded from github) builds, but I get a black screen in the simulator
  • Xcode and Git Source Control : “The working copy XXXXX failed to commit files”
  • How to use Git properly with XCode?
  • 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.

    Git Baby is a git and github fan, let's start git clone.