Open CJKay opened 3 years ago
can you tell me where I have to put this config file? Thanks
can you tell me where I have to put this config file? Thanks
This needs to be in your prepare-commit-msg
Git hook (.git/hooks/prepare-commit-message
, or .husky/prepare-commit-message
if you use Husky [we do]).
Commitizen's
--hook
option truncates theCOMMIT_EDITMSG
file. This wipes theSigned-off-by
trailer generated by Git's-s
flag, as well as any other trailers that might have been there before running Commitizen, and forces us to amend our commits after the fact.We have a temporary workaround in our hook for this, which might offer some insight:
Version: cz-cli@4.2.2, cz-conventional-changelog@3.3.0