git 规范化
引言
git cz: git commit 规范化提交
参考:
commitizen/cz-cli: The commitizen command line utility. #BlackLivesMatter
规范化git commit信息_abcde158308的博客-CSDN博客
基于node的Commitizen git提交模板_The blog of CSDN in 杨天福-CSDN博客
优雅的提交你的 Git Commit Message - 掘金
注意: 安装完这个, 都还不行, 此时虽然 git cz 可用,但不是 交互式提示
全局模式下, 需要 ~/.czrc 配置文件, 为 commitizen 指定 Adapter.
Simply use git cz or just cz instead of git commit when committing. You can also use git-cz, which is an alias for cz.
方式1: 全局安装
此种方式特别适用于 非 Node.js 项目 (无 package.json)1 | npm install -g commitizen |
1 | npm install -g cz-conventional-changelog |
1 | echo '{ "path": "cz-conventional-changelog" }' > ~/.czrc |