PyCharm 2019.3 Help

Commit Dialog

File | Settings | Version Control | Commit Dialog for Windows and Linux
PyCharm | Preferences | Version Control | Commit Dialog for macOS
Ctrl+Alt+S the Settings/Preferences icon


Use this settings page to configure the commit options.

Item

Description

Commit from Local Changes without showing the Commit dialog

Select this option to be able to commit right from the Local Changes tab of the Version Control window Alt+9, without displaying the modal Commit Changes dialog. When you press Ctrl+K, PyCharm will select the modified files and switch focus to the Commit message field in the Local Changes view.

Clear initial commit message

Select this option if you do not want automatically fill the commit message fields with the previous commit message.

Force non-empty commit comments

Select this option if you want to restrict committing changes without entering a commit message.

Show unversioned files

Select this option if you want new files that have not been added to a VCS yet to be listed in the Commit Changes dialog.

Suggest to move uncommitted changes to another changelist

Select this option if you want PyCharm to suggest moving changes to another changelist if you exclude them from a commit.

Create changelist on failed commit

Select whether you want a new changelist to be created if a commit fails.

Commit message inspections

Select the inspections that you want to be applied to the commit message.

Before Commit

Reformat code

Select this checkbox to perform code formatting according to the Project Code Style settings.

Rearrange code

Select this checkbox to rearrange your code according to the arrangement rules preferences.

Optimize imports

Select this checkbox to remove redundant import statements.

Perform code analysis

Select this checkbox to run code inspection on the files you are about to commit.

Check TODO (<filter name>)

Select this checkbox to review the TODO items matching the specified filter. Click the Configure link to choose an existing TODO filter, or open the TODO settings page and define a new filter to be applied.

Cleanup

Select this checkbox if you want to automatically apply the current inspection profile to the files you are going to commit.

Last modified: 10 December 2019