How to: Roll Back a Changeset
Though a changeset is a permanent part of the record and technically cannot be undone or removed, you can use the following procedure to effectively roll back a changeset. This procedure is a common way of correcting a check-in mistake.
The following steps refer to file in singular, but the process is the same for a group of files.
To perform these procedures, you must have the Check out permission set to Allow. For more information, see Team Foundation Server Permissions.
To revert to a prior version of the file
In Source Control Explorer, right-click the file whose changeset you want to roll back, and then click Get specific version on the context menu.
In the Get dialog box, select the prior version of the file, and then click Get. For more information, see How to: Retrieve Old Versions of Files from Changesets.
After this file is in your workspace, right-click the file, and then click Check Out for Edit on the context menu.
Right-click the file again, and then click Check In Pending Changes.
In the Check In - Source Files dialog box, select the file, and then click Check in.
The Resolve Conflicts dialog box appears.
Click Resolve to open the Resolve version conflict dialog box.
Select Discard server changes.
To review your decision before discarding the server changes, you can click Compare to view the server and local copies simultaneously.
In the Resolve Conflicts dialog box, click Close.
In Source Control Explorer, right-click the file, and then click Check In Pending Changes.
In the Check In - Source Files dialog box, click Check in.