Revert files
Revert files to discard local changes and restore files to their last synced versions from the depot.
On this page:
Revert a file
You can revert a file to remove it from the pending changelist and restore it to its last synced version from the depot.
-
In the Source Control view, right‑click the file you want to revert.
-
Select Revert file.
-
Confirm the revert when prompted.
The file is restored to its last synced revision and removed from the pending changelist.
Revert unchanged files
You can remove files that were opened for edit but not actually modified. This helps clean up changelists without discarding real changes.
-
In the Source Control view, right‑click the changelist from which you want to revert unchanged files.
-
Select Revert unchanged file.
Only unchanged files in the changelist are reverted.
Revert an entire changelist
You can revert all files in a pending changelist at once.
-
In the Source Control view, right‑click the changelist you want to revert.
-
Select Revert files in changelist.
All files in the changelist are reverted.