How to undo xcode discard all changes if not committed

后端 未结 4 2094
你的背包
你的背包 2020-12-13 04:44

I have a iOS project that I have some changes haven\'t commit. I clicked discard all changes mistakenly. I actually want to only discard a specific file\'s changes. But I cl

4条回答
  •  甜味超标
    2020-12-13 05:48

    If you clicked on "discard changes" before committing any changes, your project will become blank and you will find all files in your trash. There is not an whole xcode project there, but you will find all the files which have dates of when you created them. I solved my issue by getting the file I needed from trash. Then I put it back into my project.

提交回复
热议问题