commitizen / cz-cli

The commitizen command line utility. #BlackLivesMatter
http://commitizen.github.io/cz-cli/
MIT License
16.7k stars 547 forks source link

Fix husky prepare-commit-msg script for running Commitizen on `git commit` when installed locally #814

Closed chranderson closed 2 years ago

chranderson commented 3 years ago

The snippet to setup husky to run cz when git commit is run assumes the developer has setup the command git cz globally and throws an error: git: 'cz' is not a git command. See 'git --help'.

The fix references the locally installed cz as the git hook example above it.