Skip to content

Latest commit

 

History

History
20 lines (12 loc) · 812 Bytes

README.md

File metadata and controls

20 lines (12 loc) · 812 Bytes

Git Hooks

This directory contains hooks to avoid pushing broken or unpolished code to CI/CD, which can cause some noisy notifications.

Configuration

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.

Ignoring

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.