简体   繁体   中英

Rollback Get Latest on TFS

I had some changes on my local file but by mistake I took latest version from TFS. Now my changes have been lost. What can I do to take my unchange copy back? Please suggest.

Nothing. If you didn't commit your changes, they're gone.

Unless you added your previous changes to a shelveset (which is unlikely, otherwise you'd know they're there), your changes are gone.

Further reading, in case you don't know what a shelveset is:

Though Daniel's answer is perfect one for the question, I want to share something with others who might face the same situation as mine. As I got latest version from TFS, new files were giving giving compilation errors hence there was change in source files but not in dlls. After surfing around I have found ILSpy link which helped to to recover my source code.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM