how to restore last saved code in eclipse?

邮差的信 提交于 2019-12-18 06:31:21

问题


In Eclipse, I accidentally SVN update my code to HEAD version of the repository. My local code is what I want to keep, so how do I revert to that? Tks.


回答1:


An easy way to do this:

  1. Right click on the file you would like to restore
  2. Go to Team
  3. Select Show Local History
  4. Choose the desired date
  5. Copy the content and paste in your actual file

And it's done... Enjoy.




回答2:


You can access the local history in eclipse. Refer to this link

http://help.eclipse.org/helios/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Fguide%2Fteam_synchronize_localhistory_example.htm



来源:https://stackoverflow.com/questions/8692484/how-to-restore-last-saved-code-in-eclipse

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!