IntelliJ IDEA 13.1.0 Web Help

There is no automatic renaming or moving files in the version control systems. Working with the clients, you have to manually copy a file to a new location, change its name, add to VCS and remove the old file. IntelliJ IDEA's refactoring features make it possible to easily move and rename files under version control, performing all actions involved in these functions.

In the Changes tool window, next to the resulting files IntelliJ IDEA explicitly states: renamed from <file name> or: copied from <package name>.

img

To copy, move or rename a file under version control
  1. Select the desired file in the Project tool window, and perform refactoring procedures, as described in the sections:

    All added and deleted files are placed to a changelist.

  2. Commit changes to the repository.

Tip

You can revert refactorings, using the Undo command.

See Also

Procedures:

Reference:

Web Resources: