问题
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:
- Right click on the file you would like to restore
- Go to Team
- Select Show Local History
- Choose the desired date
- 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