Pre Commit Hook Plugin

Compatible with: IntelliJ IDEA PhpStorm WebStorm PyCharm RubyMine AppCode CLion GoLand DataGrip Rider MPS Android Studio
Mar 17, 2018
3 179
Create a file named "pre-commit-hook.sh" in project root, The plugin will run the hook before any commit with the file changed as arguments.

Download plugin

Recent change notes

0.4.0 - Added possibility to configure a path to a script 0.4.1 - Fixed running non-windows script on windows (python, perl, etc.)

General usage instructions

Create a file named pre-commit-hook.sh in your project root, exit with non-zero code to 'fail' the commit. See https://github.com/yahely/PreCommitHookPlugin/blob/master/README.md for more information.