Commitizen的使用

本文最后更新于 2024年9月22日 晚上

Commitizen的使用

安装

1
cnpm install -g commitizen

初始化

1
commitizen init cz-conventional-changelog --save-dev --save-exact

使用方式

用以下指令代替git commit

1
git cz

选择提交类型

1
2
3
4
5
6
7
feat: A new feature
fix: A bug fix
docs: Documentation only changes
style: Changes that do not affect the meaning of the code
refactor: A code change that neither fixes a bug nor adds a feature
perf: A code change that improves performance
Select the type of change that you're commiting:

提交范围

1
What is the scope of this change:

通过回车键跳过,通过输入|换行

简短描述

详细描述

破坏性变更

破坏性变更:本次提交会影响到其它部分的功能与之前的版本不兼容

解决问题

本次提交是否解决了某个Issue


Commitizen的使用
https://meteor041.git.io/2024/09/22/Commitizen的使用/
作者
meteor041
发布于
2024年9月22日
许可协议