Configure Version Control Options
IntelliJ IDEA aims at making your experience with version control features independent of the version control system (VCS) that you use. Therefore, most of the settings apply to all VCSs. There are also some VCS-specific, which are configured on the corresponding pages under the page of IntelliJ IDEA settings Ctrl+Alt+S.
Configure general version control settings
Specify which version control related actions should require confirmation.
Specify which operations should be performed in the background.
Configure history cache handling.
You can define that certain version control related activities should be performed only after confirmation from your side. Such activities can be listed on the page of IntelliJ IDEA settings Ctrl+Alt+S Confirmation settings page.
Specify which actions should require confirmation
In the Files Creation/Deletion area, define how files created or deleted in IntelliJ IDEA should be added to or removed from a version control system. The available options are:
Show options before adding to version control
Do not add
In the Display options dialog when these commands are invoked area, specify the commands, for which you want IntelliJ IDEA to display the Options dialog. The available options are:
Get Latest Version
Undo Check Out
Configure additional settings for working with changelists by selecting or clearing the corresponding checkboxes:
Specify whether the read-only state of files should require explicit cancellation.
Specify whether meaningful comments on committing files to the repository should be required.
Specify whether uncommitted changes should be moved to another changelist.
Specify whether and how to create a changelist if the commit operation fails.
Specify the operations to run in the background
- Enable background execution of the necessary actions by selecting the corresponding checkboxes. Background execution can be set for the following actions:
Configure history cache handling
Set the cache scope. Depending on the version control system you are using, do one of the following:
Specify the maximum number of changelists to be stored in the cache.
Specify the maximum number of days for a changelist to be stored in the cache.
Specify whether and how often (in minutes) you want your version control system to refresh the cache.
Certain settings are applicable to the version control systems assigned to the whole project, or its directories. The others are related to the selected version control systems. Use the respective VCS pages under the VCSs node of the Settings dialog to define VCS-specific settings.