In this page

What is IntelliJ IDEA?

IntelliJ IDEA includes a built-in Git plugin that covers common Git workflows without leaving the editor. It runs on Windows, macOS, and Linux.

IntelliJ IDEA guide

Learn how to get the most out of Better Commit Policy in IntelliJ IDEA. If this is your Git client of choice, this guide is well worth a read.

Local check

The local check is implemented as a standard Git hook that runs at commit time.

When you submit a commit from the Commit tool window, the hook automatically executes. If the local check rejects the commit, a "Commit failed with error" notification popup appears in the bottom-right corner. Click Show details in console for more information:

The list of violations is shown in the Console tab of the Git tool window:

Note that the Console tab displays the entire hook output in red, regardless of whether the commit was accepted or rejected. This is an IDEA quirk and does not reflect the severity of individual lines.

Of course, your changes remain staged, so you can easily fix the commit and retry.

Git configuration settings

The local check feature is configured through standard Git configuration settings.

IntelliJ IDEA does not offer a built-in feature to modify Git configuration settings. You can open a terminal instead (ViewTool WindowsTerminal) and run git config commands.

Questions?

Ask us any time.