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: HEAD (current default branch).
In a git working tree, add the YAML below, then run the CLI.
# hooks/pre-commit-config.yml
- name: Hello one
filename: hello-one
url: https://github.com/lupaxa-git-hooks-toolbox/test-pre-commit-1
version: HEAD# 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-one and installs the multiplexer.
A later git commit prints hello. Guide:
Setup Git Hooks.