PhpStorm 2016.2 Help

Adding Files to Version Control

If a new file is created with PhpStorm in a directory that is already under version control, it automatically adds to the active changelist with the status Added. All you have to do, is to commit this change.

PhpStorm's behavior on adding files is configurable in the General Settings tab of the Version Control dialog.

If a new file is created outside of PhpStorm, or silent adding is disabled, you have to explicitly add it to the version control.

Another approach is VCS-specific. You can import an entire directory to your repository, provided that you have the corresponding access rights. This action is helpful for putting a whole project under version control.

To explicitly add a file to version control

  1. Select file in the Project tool window.
  2. On the main Version Control menu or on the context menu of the selected file, choose <VCS> | Add.

    Alternatively, use the Version Control tool window. Select the desired files in the Unversioned files changelist in the Local Changes tab, and choose Add to VCS on the context menu, or just drag it to the target changelist.

    ps_addToVCS.png
  3. Select the added file in the changelist and check in (commit) changes.

See Also

Last modified: 24 November 2016