Source Control - Undo all changes deleted from my xcworkspace and I cannot fix it

I tried to undo changes in my project to the last committed version control state, however, when I clicked β€œUndo all changes”, a strange behavior occurred.

The first time, some of the files returned, while others did not. So I pressed the button again, and an advertising message appeared saying that it was necessary to save "xcworkspace" again. I clicked well, and half of my files disappeared from the list of xcode files on the left, and really random files that were not edited at all. So I decided to click again to see if I could return to its original state, and now all my files have disappeared from xcworkspace. So my screen looks like this:

enter image description here

I tried to recover files from my garbage (since random files appeared), but the workspace is never restored. I use MapBox, so I have 2 projects built in 1 workspace, but now the subcode will not be installed.

Can anyone give me advice on how to return this back to its original state, as I tried for several hours but cannot find any information.

+7
version-control xcode xcode5
source share

No one has answered this question yet.

See related questions:

4165
How can I reset or revert a file to a specific revision?
1748
How to delete all Git branches that have been merged?
910
Cancel git pull, how to restore repos to old state
879
Git workflow and rebase vs merge questions
801
Should I add Visual Studio.suo and .user files to the source control?
547
Do you use a control source for your database items?
479
How do you get git to always pull from a specific branch?
457
How to use Git to manage Unity3D source code?
3
XCODE 5 removes all cocoa containers associated with undo changes
0
Deleting my Xcode workspace when clicked, discard all changes

All Articles