如何撤销xcode如果没有提交,则放弃所有更改 [英] How to undo xcode discard all changes if not committed

查看:263
本文介绍了如何撤销xcode如果没有提交,则放弃所有更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个iOS项目,我有一些更改没有提交。我点击丢弃所有更改错误。我实际上只想放弃特定文件的更改。但我点了错误的按钮。现在一切都消失了。如何撤消更改?



git status不显示任何内容。

解决方案

我认为你运气不好。看到这个答案:
意外地还原为主人,丢失未提交的更改
a>



由于您没有提交或暂存任何文件,因此恢复它们意味着它们丢失。



对不起。

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 clicked wrong button. And now everything are gone. How to undo the changes?

git status shows nothing.

解决方案

I think you are out of luck. See this answer: Accidentally reverted to master, lost uncommitted changes

Since you did not commit, or stage any of your files, then having reverted them means they are lost.

Sorry.

这篇关于如何撤销xcode如果没有提交,则放弃所有更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆