Rollback a single file in TFS

If I look at the history of a single file in the source control, I can right-click on the set of changes in the list and select "roll back the entire set of changes."

Will there be a rollback of all the other files that I checked during this check, or only the file that I am viewing now? If it rolls back all the files, is there a way to roll back only the selected file?

thank

+63
tfs tfs2010
Nov 16
source share
4 answers

As mentioned earlier, rolling back a change set minimizes it completely.

Installing Tools Team Foundation Power Tools (which I think pretty much everyone should install) gives you another option: if you want to roll back one file, you can right-click one file in Source Control Explorer and select Rollback. .

+84
Nov 19 '12 at 12:57
source share

Yes, rolling back the entire set of changes will discard all changes in it.

However, the rollback is not instantaneous, when you click this option, the rollback will perform a reverse merge and leave the changes in your workspace. Therefore, you can view them in pending changes.

In your case, just roll back and undo everything except the file you really want to undo.

+34
Nov 16
source share

From now on, in visual studio 2015 atleast, you can simply go to the original control, right-click the file and select "Rollback". This will ask you what set of changes you want to roll back for this file, and it will only roll back from this file.

+13
Mar 30 '16 at 8:24
source share

A very simple workaround :) 1. rollback the entire set of changes 2. discard all files except the file that you really want.

+1
Aug 16 '17 at 6:52
source share



All Articles