先add 再输入git cz命令
- 全局下载commitzennpm install -g commitizen
Install your preferred commitizen adapter globally, for example cz-conventional-changelog
npm install -g cz-conventional-changelog
Create a .czrc file in your home directory, with path referring to the preferred, globally installed, commitizen adapter
echo ‘{ "path": "cz-conventional-changelog" }‘ > ~/.czrc
commitizen help 帮助