安装指南
安装commitizen
sudo npm install -g commitizen
配置
cd到.git所在目录
commitizen init cz-conventional-changelog --save --save-exact
使用
用git cz命令来取代git commit
"husky": {
"hooks": {
"commit-msg": "commitlint -e $GIT_PARAMS"
}
},
"config": {
"commitizen": {
"path": "node_modules/cz-customizable"
}
},
git 提交表情
https://gitmoji.carloscuesta.me/
制作版本图标
https://shields.io/