The revisions to files in Team Foundation version control are saved to your local workspace until you check in these changes. Such changes are referred to as pending changes. You can view and manage pending changes using the Pending Changes and Check In windows. From the Pending Changes window, you can:
View and check in pending changes in your workspace.
Refer to Checking In an Element in Source Control for more information on viewing and checking in pending changes.
Undo pending changes
To undo pending changes in Source Control Explorer, perform the following:
In Source Control Explorer, right-click any element for which you want to undo pending changes, and click Undo or Undo Pending Changes.
In the Undo Pending Changes dialog box, select the check box of each file for which you want to undo pending changes, and click Undo Changes.
In Source Control Explorer, the pending change type is removed in the Included Changes column.
If you undo an edit, your copy of the file is replaced with an unmodified version you checked out.
If you undo a delete, the version you deleted is restored (unless you have performed a get operation since pending the delete; in which case the version you last tried to get is downloaded).
If you undo an add, the file is left undisturbed.
Compare elements in a pending change to a different version
To compare files in a pending change to a different version, perform the following:
On the View menu, click Other Windows, and then click Pending Changes.
The Pending Changes window is displayed.
In the Pending Changes window, right-click the element that you want to compare to another version, click Compare and then click, With Workspace Version or With Latest Version.
If you are prompted with the Source Control dialog box, click Save and continue to save your changes to the disk before you continue with the compare.
The two elements are presented with their differences highlighted, or if the elements are the same, a dialog box appears that shows that the elements are identical.
Refer to View and Manage All Pending Changes in your Workspace in Visual Studio Online Help for more information on performing the operations on pending changes window.