如何在xcode中检索替换的文件 [英] How to retrieve replaced file in xcode

查看:28
本文介绍了如何在xcode中检索替换的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不小心替换了 Xcode 中的一个 .h 文件.因此当前的 .h 文件是空的.无论如何我可以取回它,因为它有很多工作.

I accidentally replace one of the .h file in Xcode.Thus the current .h file is empty. Is there anyway i can retrieve it back as it is alot of work.

请给我一个解决方案.

谢谢.

推荐答案

如果您的项目在 Git 下,并且您将上一个版本提交到 Git ,您可以恢复到上一个​​版本.

If your project is under Git , and you committed your last version to Git , you can revert to last version.

否则,如果您有 Time Capsule 并启用了它,您可以恢复到文档的旧时间.

Else, if you have Time Capsule and you enabled it, you can revert to older time of the document.

最后,如果以上都没有,并且 Cmd + Z 没有运气,那么你必须重写它.

Last, if you have none of the above and you have no luck with Cmd + Z , then you have to rewrite it.

这篇关于如何在xcode中检索替换的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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