PhpStorm 7.1.0 Web Help

After a Git repository for a project is initialized, you need to add the project data to it.

Tip

If you have specified Git as the version control system for your project in the Settings dialog box, tab Version Control, PhpStorm suggests to put each new file under Git control during the file creation.

To have Git ignore some types of files, configure files to ignore.

In this section:

To add all currently unversioned files to Git control
  1. Switch to the Changes tool window.
  2. Navigate to the Unversioned Files node and choose Add to VCS from the context menu or press Ctrl+Alt+ACtrl+Alt+ACtrl+Alt+ACtrl+Alt+ACtrl+Alt+ACtrl+Alt+ACtrl+Alt+ACtrl+Alt+AAlt Command AAlt Command AAlt Command A.
To add specific file(s) to a local Git repository, do one of the following:
  • Switch to the Changes tool window, expand the Unversioned Files node, and select the files to be added. From the context menu, choose Add to VCS, or press Ctrl+Alt+ACtrl+Alt+ACtrl+Alt+ACtrl+Alt+ACtrl+Alt+ACtrl+Alt+ACtrl+Alt+ACtrl+Alt+AAlt Command AAlt Command AAlt Command A.
  • Switch to the Project tool window and select the files to be added. From the context menu, choose Git | Add or press Ctrl+Alt+ACtrl+Alt+ACtrl+Alt+ACtrl+Alt+ACtrl+Alt+ACtrl+Alt+ACtrl+Alt+ACtrl+Alt+AAlt Command AAlt Command AAlt Command A.

See Also

Concepts:

Procedures:

Reference:

Web Resources: