PyCharm 2017.2 Help

Ignore Unversioned Files

File | Settings | Version Control | Ignored Files for Windows and Linux
PyCharm | Preferences | Version Control | Ignored Files for macOS
Ctrl+Alt+S
/help/img/idea/2017.2/settings.png


The dialog box opens when you click the Add /help/img/idea/2017.2/new.png or Edit /help/img/idea/2017.2/edit1.png button on the Ignored Files page.

Use this dialog to configure rules that define which files and folders should be ignored by version control systems. The files you want to ignore can be appointed explicitly by their names of through name patterns with wildcards. To ignore a directory, you need to specify the full path to it relative to the project root.

Select the relevant option and fill in the text box next to it.

ItemDescription
Ignore specified fileIn this text box, specify the name of the file to be ignored. Do one of the following:
  • Type the file name relative to the project root, for example, my_folder/my_subfolder1/my_subfolder2/my_file.
  • Click the Browse button browseButton.png and select the desired file in the Select File to Ignore dialog box.
Ignore all files underIn this text box, specify the name of the directory to be ignored. Do one of the following:
  • Type the directory name relative to the project root, for example, my_folder/my_subfolder1/.
  • Click the Browse button browseButton.png and select the desired folder in the Select Directory to Ignore dialog box.

The rule is applied recursively to all subdirectories of the specified directory. If a directory has several subdirectories and you want only one of them ignored, specify the required directory explicitly, for example, my_folder/my_subfolder1/my_subfolder2/.

Ignore all files matchingIn this text box, specify a pattern that defines the names of files to ignore. The rule is applied to all directories under the project root.
Last modified: 26 October 2017

See Also