17 lines
308 B
Markdown
17 lines
308 B
Markdown
# Git Hooks
|
|
|
|
This repository standard uses a project-local hooks directory:
|
|
|
|
- `.githooks/pre-commit`
|
|
|
|
Activate it once per repository:
|
|
|
|
```sh
|
|
git config core.hooksPath .githooks
|
|
```
|
|
|
|
The pre-commit hook validates for staged `.sh` files:
|
|
|
|
- executable bit in Git index (`100755`)
|
|
- LF line endings (no CRLF)
|