Commit Changes Dialog
Use this dialog to commit (check in) changes from the selected changelist to the repository and, optionally, to create a patch file.
This dialog consists of several areas:
- Modified files pane
- Commit Message pane
- VCS-specific controls
- Before Submit / Before Commit section
- After Submit / After Commit section
- Diff pane
- Submit / Commit button
The options available in this dialog depend on the version control system you are using.
Modified files pane
This section contains a list of files that have been modified since the last commit. Deselect the check-boxes next to the files that you want to exclude from current commit.
Tooltip and Shortcut
Click this button to open the Differences dialog that highlights the differences between your local working copy of the selected file and its repository version.
Click this button to reload the Changed files tree view so it is up-to-date.
Show Unversioned Files
Click this button if you want to see newly added files that have not been added to version control yet under the Unversioned Files node.
Add to VCS
Click this button to move the files selected under the Unversioned Files node to the active changelist, so that they are added to your version control system during the commit.
Move to Another Changelist
Click this button to add the selected file(s) to another changelist. The Move to Another Changelist dialog opens where you can select an existing changelist or create a new one.
Click this button to delete the selected file.
Click this button to leave the selected files unversioned.
Click this button to revert all changes made to the local working copy of the selected files.
Jump to source
Click this button to open the source code of the selected file in the editor.
Revert Unchanged Files
Click this button to revert the files that have not been modified locally.
Group by Directory
Click this button to toggle between the flat view and the directory tree view.
Expand or collapse all nodes
Click these buttons to expand or collapse all nodes in the directory tree. These buttons are not available in flat view.
From this list, select the changelist that contains the modified files to be checked in or included in the patch. The active changelist is selected by default.
The summary under the modified files pane shows statistics on the currently selected changelist, such as the number of modified, new, deleted and unversioned files. This area also shows how many files of each type are shown, and how many of them will be committed.
Commit Message pane
In this area, enter a comment to the current commit. You cannot commit your changes until you enter some description in the Commit Message field.
This comment will also be used as the name of the patch file, if you decide to create a patch.
You can click Commit Message history Ctrl+M to choose from the list of recent commit messages.
The controls in this section are located in the top-right part of the dialog, and contain the options that are specific for the version control system you are using.
Use this list to select the author of the changes that you are going to commit. This may be useful when you are committing changes made by another person.
Select this checkbox to replace the previous commit with the current changes (see Git Basics: Undoing Things for details).
| select if you want to sign off your commit to certify that the changes you are about to check in have been made by you, or that you take the responsibility for the code you're committing. |
When this option is enabled, the following line is automatically added at the end of the commit message: Signed off by: <username>
Keep files locked
Select this checkbox to keep the changed files locked after they are checked in.
Before Submit / Before Commit section
Use the controls in this area to define which additional actions you want JetBrains Rider to perform before committing the selected files.
These controls are available for the following version control systems:
Select this checkbox to perform code formatting according to the Project Code Style settings.
Select this checkbox to rearrange your code according to the.
Select this checkbox to remove redundant import statements.
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.
Select this checkbox if you want to automatically apply the current inspection profile to the files you are going to commit.
After Submit / After Commit section
Use the controls in this area to define which additional actions you want JetBrains Rider to perform after committing the selected files.
From this list, select the external tool that you want JetBrains Rider to launch after the selected changes have been committed. You can select a tool from the list, or click the Browse button and configure an external tool in the External Tools dialog that opens.
Upload files to
The list is only available if the FTP/SFTP Connectivity plugin is enabled.
Always use selected server or group of servers
The checkbox is only available if the FTP/SFTP Connectivity plugin is enabled.
Auto-update after commit
Select this checkbox to automatically update your project after the commit. Enabling this option will help prevent your working copy against the mixed-revision state.
The mixed-revision state of a working copy may affect the Move and Rename refactoring applied to folders, in which case items in revisions different from the moved subtree root will be tracked separately, which can be confusing.
When the Auto-update after commit option is enabled:
The Diff pane is hidden by default. To unfold it, click the arrow button next to the pane title.
In this pane you can explore the differences between the base repository version of the selected file, and the version you are about to commit.
Tooltip and Shortcut
Previous Difference / Next Difference Shift+F7 F7
Use these buttons to jump to the next/previous difference.
When the last/first difference is reached, JetBrains Rider suggests to click the arrow buttons F7/Shift+F7 once more and compare other files, depending on the Go to the next file after reaching last change option in the Differences Viewer settings.
Compare Previous/Next File
Click these buttons to compare the local copy of the previous/next file with its update from the server.
Jump to Source
Click this button to open the selected file in the active pane in the editor. The caret will be placed in the same position as in the Differences Viewer.
Use this list to choose a viewer type. The side-by-side viewer has two panels; the unified viewer has one panel only.
Both types of viewers enable you to
Use this list to define how the differences viewer should treat whitespaces.
Select the way differences granularity is highlighted.
The available options are:
Collapse unchanged fragments
Click this button to collapse all unchanged fragments in both files. The amount of non-collapsible unchanged lines is configurable in the Diff & Merge settings page.
Click this button to scroll both differences panes simultaneously. If this button is released, each pane can be scrolled independently.
Click this button to enable editing of the local copy of the selected file, which is disabled by default. When editing is enabled, you can make last-minute changes to the modified file before committing it.
Click this button to open a list of available options. Select or clear these options to show or hide line numbers, indentation guides, white spaces, and soft wraps.
Show diff in external tool
Click this button to invoke an external differences viewer, specified in the External Diff Tools settings page.
This button only appears on the toolbar when the Use external diff tool option is enabled in the External Diff Tools settings page.
Click this button to show the corresponding help page.
Note that the options listed above are available for text files only. JetBrains Rider cannot compare binary files, so most commands will be unavailable for them.
Submit / Commit button
Click this button to commit the selected files, or hover your mouse over this button to display one of the following available commit options:
Create MQ Patch: select this option to create an MQ patch based on your changes. This option is only available if you are using Mercurial as a version control system.
Create Patch: select this option if you want JetBrains Rider to generate a patch based on the changes you are about to commit. In the Create Patch dialog that opens, type the name of the patch file and specify whether you need a reverse patch.