简体   繁体   English

恢复为文件的旧版本

[英]Revert to an older version of a file

I am quite sure there are plenty of resources on how to get back to an older version of a file, like this one , but using the command line, what i want to do is the same but from the Xcode interfaces. 我敢肯定有很多资源,如何找回旧版本的文件,像这一个 ,但使用命令行,我想做的事情是一样的,但是从Xcode的接口。 Is there any way to do so? 有什么办法吗? thanx in advance. 提前谢谢。

The only way that I know of is to locate the prior version of the file, copy the contents to the working version, and commit the result. 我知道的唯一方法是找到文件的先前版本,将内容复制到工作版本中,然后提交结果。 You find all earlier versions using the 'Version Editor' pane, clicking the 'Timeline' icon and then scrolling through the versions (say on the right). 您可以使用“版本编辑器”窗格,单击“时间轴”图标,然后滚动浏览各个版本(例如右侧),找到所有较早的版本。 Once there select the version you want and copy the content. 在那里,选择所需的版本并复制内容。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM