Tuesday, November 1, 2011

Rollback your changes in the TFS 2010 source control to a specific date, time or changeset

PROBLEM:
You want to rollback your changes in the TFS2010 source control to a specific date, time or changeset

SOLUTION:
You can use the following tools to rollback the effects of one or more changesets to one or more version-controlled items. Those tools does not remove the changesets from an item's version history. Instead, this creates in your workspace a set of pending changes that negate the effects of the changesets that you specify.

Tool#1 - "tf rollback" command line using Visual Studio Command Prompt (2010).
The following example changes the content of dev_project to match the last changeset that was applied on or before midnight on August 31, 2011

c:\workspace>tf rollback /toversion:D08/31/2011 /recursive $/dev_project/

Tool#2 - using the new rollback features available in the UI with the latest TFS 2010 Power Tools.
You have the ability to rollback straight from Team Explorer without having to use the command-line approach


If you find this solution useful, you are welcome to press one of the ads in this page.. Thanks!


No comments:

Post a Comment