Revert Changes in Source Control

Revert Local Changes

With SVN, if you want to roll back local changes in a file, right-click the file and select Source Control > Revert Local Changes and Release Locks. This command releases locks and reverts to the version in the last sandbox update (that is, the last version you synchronized or retrieved from the repository). If your file is not locked, the menu option is Source Control > Revert Local Changes. To abandon all local changes, select all the files in the Current Folder browser before you select the command.

With Git™, right-click a file and select Source Control > Revert Local Changes. Git does not have locks. To remove all local changes, right-click a blank space in the Current Folder browser and select Source Control > Branches. In the Branches dialog box, click Revert to Head.

Revert a File to a Specified Revision

  1. Right-click a file in the Current Folder browser and select Source Control > Revert using SVN or Revert using Git.

  2. In the Revert Files dialog box, choose a revision to revert to. Select a revision to view information about the change such as the author, date, and log message.

  3. Click Revert.

If you revert a file to an earlier revision and then make changes, you cannot commit the file until you resolve the conflict with the repository history.

Related Topics