Use this dialog box to commit (check in) changes from the selected change list to the repository and, optionally, to create a patch file.
The options available in this dialog depend on the version control system you are using.
Toolbar
Item | Tooltip and Shortcut | Description | Available in |
---|---|---|---|
![]() | Show Differences
Ctrl+D | Click this button to open the Differences dialog box that points at the inconsistencies between your local working copy of the selected file and the file in the repository. | All VCSs |
![]() | Move to Another Changelist
F6 | Click this button to add the selected file(s) to another changelist. The Move to Another Changelist dialog box opens where you can select an existing changelist or create a new one. | All VCSs |
![]() |
Refresh Changes
Ctrl+F5 | Click this button to reload the Changed files tree view so it is up-to-date. | All VCSs |
![]() | Rollback | Click this button to revert all changes made to the local working copy of the selected file(s). | All VCSs |
![]() | Jump to source
F4 | Click this button to open the source code of the selected file in the editor. | All VCSs |
![]() | Revert Unchanged Files | Click this button to revert the files that have not been modified locally. |
Subversion
Perforce |
![]() | Group by Directory
Ctrl+P | Click this button to toggle between the flat view and the directory tree view. | All VCSs |
![]() ![]() | Expand or collapse all nodes
Ctrl+NumPad Plus or Ctrl+Equals Ctrl+NumPad - or Ctrl+Minus | Click these buttons to expand or collapse all nodes in the directory tree. These buttons are not available in flat view. | All VCSs |
Controls
Item | Description | Available in |
---|---|---|
Changed files | This tree view displays the list of modified files. Select the check boxes next to the files that you want to check in. | All VCSs |
Commit Message | In this text box, describe the changes to be checked in.
This comment will be also used as the name of the patch file, if you decide to create a patch.
As you type, PyCharm checks the spelling and highlights words in question.
This functionality is available if the Spelling code inspection is enabled. | All VCSs |
Change list | From this drop-down list, select the change list that contains the modified files to be checked in or included in the patch. By default, the active change list is suggested. | All VCSs |
Summary | This section displays summary statistics on the currently selected change list, such as the number of modified, new, and deleted files. The area also shows how many files of each type are shown and how many of them will be committed. | All VCSs |
Author | Use this drop-down list to specify the person who created the changes to be checked in.
This may be necessary when you are checking in changes made by another person. | Git |
Amend Commit | Select this check box to
replace a previous commit with the current changes,
see git commit --amend![]() | Git, Mercurial |
Keep files locked | Select this check box to keep the files locked after they are checked in. | Subversion |
Jobs |
This area is available only if you select the
Enable Perforce Jobs Support
check box on the
Perforce
page of the
Settings
dialog box.
Use the controls in this area to search forPerforce jobs, link jobs to the selected changelist, and detach currently linked jobs.
If only one job matching the pattern is found, it is attached to the changelist
automatically. Otherwise,
to select a job among several available jobs,
click the
The list box in the bottom of the area displays the jobs that are currently attached to the changelist. | Perforce |
Before Submit/
Before Commit |
Use this area to define which additional activities you want PyCharm to perform before
checking in the selected files. The available options are:
|
CVS
Git, Subversion, Perforce |
After Submit/
After Commit |
Use this area to define which additional activities you want PyCharm to perform after
checking in the selected files. The available options are:
| All VCSs |
Details |
The pane is by default hidden, to unfold it click the arrow icon next to the pane title.
In this pane, explore the differences between the base repository version of the file
selected in the
Changed Files
list and the version to be checked in.
The pane consists of two areas:
To close the pane, click the Preview Diff button | All VCSs |
Submit/Commit | Click this button with drop-down to do one of the following:
| All VCSs |