error: unknown option `hook'
Hello, I am trying to use 'git commit' using a husky hook as mentioned in the docs but I get error: unknown option `hook' when husky is trying to run exec < /dev/tty && git cz --hook
@alialaa Had this issue. Updating commitizen to 4.0.3 fixed it for me.
@Indimeco Are you sure? I am already using this version.
Yeah, pretty sure this is how I fixed it yesterday. To my understanding the error is saying "you supplied an argument to git-cz that does not exist" i.e., I was using a version where --hook haden't been implemented yet.
I had to rerun the commands ./node_modules/.bin/commitizen and ./node_modules/.bin/commitizen init cz-conventional-changelog --save-dev --save-exact
@vicentelyrio thanks I did that and it worked
Thanks a lot @vicentelyrio
@vicentelyrio vlw meu amigo, to com mesmo problema