Search code examples
gitintellij-ideagit-squash

Intellij "before commit" options meaning


I cannot find the documentation about the several options (checkboxes) that are visible when commiting.

commit options

I'm looking for an option to squash all commits from the IDE, and I'm wondering if one of these options couldn't help me to do that. Is there any official documentation about the different options?


Solution

  • Here are the brief descriptions of the before commit operations (source):

    Operation Description
    Reformat code Perform code formatting according to the Project Code Style settings.
    Rearrange code Rearrange your code according to the arrangement rules preferences.
    Optimize imports Remove redundant import statements.
    Perform code analysis Perform code analysis Run code inspection on the files you are about to commit/shelve.
    Check TODO (filter name) Review the TODO items matching the specified filter. Click Configure to choose an existing TODO filter, or open the TODO settings page and define a new filter to be applied.
    Cleanup Automatically apply the current inspection profile to the files you are going to commit/shelve.
    Update copyright Add or update a copyright notice according to the selected copyright profile - scope combination.