Files
shell-scripting-templates/.hooks
2021-10-29 15:01:31 -04:00
..
2021-10-29 15:01:31 -04:00
2021-10-21 16:03:27 -04:00

This folder contains a git pre-commit script which will be executed on the client side before files are committed to the repository. This script provides automated linting and testing of multiple file types.

Usage

To install the hook, create a symlink into the /path/to/repo/.git/hooks directory.

ln -s "$(git rev-parse --show-toplevel)/.hooks/pre-commit.sh" "$(git rev-parse --show-toplevel)/.git/hooks/pre-commit"