Files
shell-scripting-templates/.hooks/README.md
Nathaniel Landau da0b0e272a initial commit
2021-08-12 15:41:29 -04:00

9 lines
342 B
Markdown

This folder contains git hooks which will be executed on the client side before certain git actions are completed.
## Usage
On each local system these files must be symlinked into `repo/.git/hooks` directory.
```bash
ln -s "$(git rev-parse --show-toplevel)/.hooks/pre-commit.sh" "$(git rev-parse --show-toplevel)/.git/hooks/pre-commit"
```