Validation pre-commit source for
setup-hooks.
Use this repo to try the installer without a production hook. The script at
src/pre-commit only prints hello.
Examples pin this source with version: v0.1.0 (explicit tag).
In a git working tree, add the YAML below, then run the CLI.
# hooks/pre-commit-config.yml
- name: Hello three
filename: hello-three
url: https://github.com/lupaxa-git-hooks-toolbox/test-pre-commit-3
version: v0.1.0# hooks/multiplexer-config.yml
url: https://github.com/lupaxa-git-hooks-toolbox/git-hooks-multiplexer
version: HEADpython -m pip install lupaxa-setup-git-hooks
setup-hooksThat writes hooks/pre-commit/01-hello-three and installs the multiplexer.
A later git commit prints hello. Guide:
Setup Git Hooks.