To undo all your local changes to an item since the last update, use the Revert option.
This operation does not affect any changes that you have already committed. It only reverts your local changes, and restores the item to the version to which it was last updated. To undo all changes up to a specific revision, you need to use the Revert to Revision option.
- In the Solution Explorer, right-click an item and select Revert.
The Revert window displays a list of all the items you changed locally since your last update.
- In the Select items to revert window, check the required items.
- Click OK.
Note: Since you cannot undo a revert operation, you might consider backing up your local changes before reverting them.