cz-cli icon indicating copy to clipboard operation
cz-cli copied to clipboard

how to sign commit in hook model

Open nodece opened this issue 4 years ago • 1 comments

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

nodece avatar May 08 '21 16:05 nodece

Related to #820.

CJKay avatar Jun 07 '21 12:06 CJKay