npm i -g cz-conventional-changelog 在项目目录里,运行下面的命令,使其支持 Angular 的 Commit message 格式。 但是存在一个问题 使用git commit -m hello依然可以提交 npm install ghooks –save-dev 编写配置文件启用钩子 使文件生效 Create a .czrc file in your home directory, with path referring to the preferred, globally installed, commitizenadapter 尝试执行 echo ‘{ “path”: “cz-conventional-changelog” }’ > ~/.czrc(来自于github源码https://github.com/commitizen/cz-cli) |
|
来自: 昵称27265735 > 《待分类》