Eclipse 撤消对特定时间的项目更改?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/16058185/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 20:22:52  来源:igfitidea点击:

Eclipse undo changes to project to particular time?

javaeclipse

提问by SudoRahul

Is it possible to undo changes to a project till a particular time? Like say, restore project to how it was at 1:00pm?

是否可以在特定时间之前撤消对项目的更改?比如说,将项目恢复到原来的样子1:00pm

回答by SudoRahul

In the editor in your eclipse, do this, Right Click -> Replace With -> Local History...

在 Eclipse 的编辑器中,执行此操作,右键单击 -> 替换为 -> 本地历史记录...

From the list of entries in Revision Time, select the revision you want, compare the changes, and if they look okay, replace it.

Revision Time中的条目列表中,选择您想要的修订,比较更改,如果它们看起来不错,则替换它。

Done!

完毕!

回答by Arshdeep Singh Sandhu

Right-click the project folder, choose "Restore from Local History..." Check the files that you would like to get reverted back. This won't undo the fetch per se, but it'll get your files back.

右键单击项目文件夹,选择“从本地历史记录恢复...”检查您想要恢复的文件。这不会撤消提取本身,但会取回您的文件。