I've overwritten one of my local changes in Eclipse to one of the files by mistake! How can I get my local changes back? I'm using Git in Eclipse and in the Team Synchronize window I clicked Overwrite to one of the files I did not want to!
Restore Previous Versions (PC) – In Windows, if you right-click on a file, and go to “Properties,” you will see an option titled “Previous Versions.” This option can help you revert to a version of your file before the overwrite occurred, allowing you to get your data back.
If the file is overwritten, the new data overwrites the old one, such a file cannot be recovered. The new file may have the same name and size, but the content will be new.
To restore a deleted file, right-click the file's project, and select Restore from Local History, opening the dialog shown in Figure 2-18. In the figure, a . class file that was deleted is restored.
You can use local history information from eclipse
http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.platform.doc.user%2FgettingStarted%2Fqs-55.htm
Right-click the file in a navigation view (e.g. the Project Explorer) and select Team > Show Local History.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With