tags:

views:

563

answers:

2

Can anyone tell me how to revert a checkin in TFS 2010?

+2  A: 

There is no undo option in TFS (up untill 2008, I haven't used 2010 yet). There are some command line power tools you can use to rollback changes that may help:

http://msdn.microsoft.com/en-us/library/ms194956%28VS.80%29.aspx

Edit: 2010 specific info:

http://www.edsquared.com/2010/02/02/Rollback+Or+Undo+A+Changeset+In+TFS+2010+Version+Control.aspx

HTH

DannyLane
+7  A: 

For 2010, use the rollback command from the command line. There is not integrated support in the IDE for this, as of yet.

Rollback command

Basically, the way that it works is that it creates an "anti-delta" to negate the impacted changeset. You can accomplish the same thing manually by doing a Get Specific Version, adding a space to the file so it looks like it changed, and checking it in. I still go the latter route to back out a change if I need to for a single file, as I find it quicker to do.

joseph.ferris