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