Git 提交规范(commitizen 使用流程)

2021-09-23  本文已影响0人  示十

全局安装 commitizen

npm install -g commitizen

对代码修改后,使用 git add 将修改文件存入暂存区

使用 git cz

  1. 此时会要求选择 type,常用类型如下:
  1. 输入修改的模块
? What is the scope of this change (e.g. component or file nam
e): (press enter to skip) 数据页
  1. 输入 commit 信息,推荐以动词开头,如: 设置、修改、增加、删减、撤销等
? Write a short, imperative tense description of the change (m
ax 89 chars):
 (13) 测试 commitizen
  1. 运行 git log,查看提交信息
fix(数据页): 测试 commitizen
上一篇 下一篇

猜你喜欢

热点阅读