7

Is there any way to get my changes that I made in local machine back after I have done "Undo Pending changes"?

I think it's not possible but still, i'm wondering if anyone knows a way..

Michael Sync
  • 4,634
  • 9
  • 37
  • 56

2 Answers2

20

If you have not built your project after the "Undo Pending changes" -

You can open the dll in Reflector and copy the correct code.

banana
  • 1,126
  • 3
  • 14
  • 25
0

Only the same number of ways you would have if you overwrote a regular file (so probably none but you might have had a backup script or something similar run on your machine).

Matt Mitchell
  • 39,515
  • 35
  • 113
  • 182
  • Bad luck, unfortunately this is a case of: learned += new Lesson("Commit early and often"); – Matt Mitchell Jun 30 '10 at 06:31
  • yes.. used to commit early and often. but we are moving SVN to TFS and took a while to get new TFS up and running so didn't check the code for 4 days.. probably, i should setup auto-backup script on my machine.. – Michael Sync Jun 30 '10 at 06:59
  • 1
    Wow 4 days of lost work.. Best of luck - I just realised if it was a delete you could actually recover it, but I don't think there's any way to recover overwritten content unless you have a copy (e.g. from a backup script). – Matt Mitchell Jun 30 '10 at 07:07