# Enable local pre-commit hooks

To enable repository-managed hooks locally:

```
git config core.hooksPath .githooks
chmod +x .githooks/*
```

Optional: install gitleaks locally for better protection during commits:

- https://github.com/gitleaks/gitleaks/releases
- Then commits will auto-scan with `gitleaks protect`.

