IntelliJ IDEA 14.0.0 Web Help

Adding Files to a Local Git Repository

In this section:

Basics

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

If you have specified Git as the version control system for your project in the Settings | Version Control page, IntelliJ IDEA suggests to put each newly created file under Git version control.

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

Adding all currently unversioned files to Git control

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 pressCtrl+Alt+A.

Adding specific files to a local Git repository

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+A.
  • Switch to the Project tool window and select the files to be added. From the context menu, choose Git | Add or pressCtrl+Alt+A.

See Also

Last modified: 4 December 2014
comments powered by Disqus