This directory contains hooks to avoid pushing broken or unpolished code to CI/CD, which can cause some noisy notifications.
To use them, you'll need to set your gitconfig to include this directory for hooks. To do that for this repo only, run:
echo '[core]' >> .git/config;
echo ' hooksPath="./.githooks"' >> .git/config;
or edit the config appropriately, if you've already changed it in the past.
To disable, simply rm .git/config
, or remove the relevant lines.
For some reason or another, a hook might fail or you might want to skip it for a specific commit or push. To do that, add --no-verify to your commit command.