visual studio - Is there a way to recover erased code in a source-controlled project(TFS)? -
i'm working on project in visual studio 2012, that's hosted on tfs.any way, don't know if it's due lack of sleep or sheer carelessness, when trying move 1 large function body 1 file another, copied declaration new file, forgot copy body , erased body old one, clicked save reflex , closed first .cpp file, when pasted in second one, surprised pasted declaration , not definition.undo pending changes undo 'add' alltogether.is there way retrieve lost source or should start rewriting asap?because spend quite while writing it.
view history of file. right click >> source control >> view history, below:
this assumes you've checked in @ point.
Comments
Post a Comment