How can I undo a changeset rollback in TFS 2010?

Eccentropy picture Eccentropy · Sep 1, 2011 · Viewed 15.1k times · Source

I accidentally rolled back an entire changeset. How can I undo that operation, and restore the changeset?

Answer

Quango picture Quango · Jan 2, 2014

If you select "Rollback Entire Changeset" in TFS, it changes the local files so that the changes made in the changeset are reversed.

Since this is a local change and does not take effect until you check the changes in, you can "undo" the rollback by using "Undo pending changes" on your project. Note this will also mean any other uncommitted changes would also be lost, so use with care.