- official git hooks documentation Link
- Hooks are programs you can place in a hooks directory to trigger actions at certain points in git’s execution. Hooks that don’t have the executable bit set are ignored.
- git hooks are not part of the repository, that makes them a bit harder to maintain
- Solutions:
- git-build-hook Maven Plugin Github
- Husky (manage git hooks per package.json) Husky documentation
- Practical Uses:
- scripts must be executable
- on Linux for example
chmod +x pre-commit
- on Linux for example
- bypass hooks by
--no-verify
- Ressources: