commitizen / cz-cli

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

how to sign commit in hook model #829

Closed nodece closed 2 months ago

nodece commented 3 years ago

I want to use the cz to sign commit, I tried add -s after cz, but it cannot work.

in git:

git commit -m "fix: xxx" -s

in git-cz with husky:

#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

exec < /dev/tty && cz -s --hook || true
CJKay commented 3 years ago

Related to #820.