PhpStorm 2016.2 Help

Reverting to a Previous Version

You can restore any previous version of a file, using the History view of a file. So doing, the current content of the file is replaced with the copy of the older content. After such operation, you have to commit the file to bring the repository up to date.

The exact name of the command (revert or roll back) depends on the specific VCS.

To revert a file to its previous version

  1. Select the desired file in the Project tool window, and open its history.
  2. In the History tab, select the desired revision.
  3. On the context menu of the selected entry, choose Get, or click the get button on the toolbar.

See Also

Last modified: 24 November 2016