How to retrieve accidentally deleted or overwritten code in Eclipse (SVN)

 Application scenario: When developing and writing programs in Eclipse, I made a mistake in operating SVN. For example, a large amount of important code that I worked hard to write has not yet been submitted, and I mistakenly clicked the restore coverage of SVN, causing my code to disappear.
 Solve the problem: Recover the problem that caused the native code in Eclipse to be overwritten due to misoperation.
 Solution:
 Method 1, decompile class files
  If you have automatically compiled or manually compiled these codes through Eclipse during the development process, congratulations, you can directly find the class file and the overwritten code can be decompiled. Unfortunately, the comment is gone&...
 Method 2, Eclipse restores local records
 If you are lucky enough to remember the file directory and file name of the code you wrote before it was overwritten, congratulations. You can create an empty directory and file that is the same as the one before overwriting according to the organizational structure before overwriting. Then, right-click the file and select Just restore local records. If the files and directories before overwriting are not created, the option to restore local recording may not be visible.
 Method three, you are lucky enough to see it, and it is different from the previous two methods. Please help me add it. Because I usually use the above two to solve personal problems, without researching other...

 

Guess you like

Origin blog.csdn.net/zdsx1104/article/details/17020097