P

Pre Commit Hook Plugin

JetBrains

yahel_yechieli_gmail_com · v—

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.

VCS
Downloads
13K
13 158
Rating
4.1 ★
6 ratings
Category
VCS
JetBrains Marketplace
Collected
2026-11-04
weekly snapshot

Rating distribution

4.1 ★ 6 ratings
5★ 100.0%

Reviews 8

★★★★★ TECHKATLIPOK 2021-02-05

It's a good plugin, I used it for a very long time for complex scripts, re-signing the code, but now I noticed that everything was broken. I started to understand and it turned out that the plugin does not support the new version of CLion(((

★★★★★ tzook10 2016-12-09

Really useful plugin for running ANYTHING directly before any commit. Been waiting for this for ages, amazing!

★★★★★ Michael Mokroß 2022-03-02

Is there any chance to get this plugin running with actual IDE versions? It would be really cool!

★★★★★ ThinkGo 2020-06-16

Hi there, I'm getting an error saying Pre Commit Hook Plugin ** Pre commit hook exited with error:** Do you want to commit? Commit without running pre-commit-hook is not recommended. No/Yes all i've is two mvn commands to be executed in the file to format/clean/install. Also i've added permission to file file as chmod 777 pre-commit-hook.sh before pushing mvn fmt:format #mvn clean install

★★★★★ John TK 2019-02-11

Would great if we were able to set the script for all projects rather than just the current one, not sure if that's something that could be done?

★★★★★ Richard van Laak 2018-10-01

Would be great to have a `pre-push-hook` option as well! :-)

★★★★★ davidkofman 2018-03-12

very useful tool, thanks! One thing though - The files being committed include also the deleted files, which is very inconvenient if you want to run a lint for instance. I'd solve it in the config or pass an indicator along with each file

★★★★★ Michael Duffy 2017-11-28

Very useful plug in, but the .sh isn't helpful for Windows users. Would it be possible to make the name and type of time to be executed configurable? If I could kick off a pre-commit-hook.bat or pre-commit-hook.cmd I'd be in heaven. Thank you!

Similar in “VCS”