Update 2.git提交规范.md
This commit is contained in:
@@ -20,7 +20,13 @@ Conventional Commits(约定式提交规范),是目前使用最广泛的提交
|
||||
[commit message convention](https://www.conventionalcommits.org/zh-hans/v1.0.0/)
|
||||
|
||||
|
||||
|
||||
## 如何约束规范
|
||||
|
||||
怎么确保每个提交都能符合规范呢,最好的方式就是通过工具来生成和校验,commitizen是一个nodejs命令行工具,通过交互的方式,生成符合规范的git commit
|
||||
|
||||
对于开发人员,各种IDE上可以安装插件来配置提交规范。比如jb的IDE,可以安装 Git Commit Template 插件来实现。
|
||||
|
||||
对于git服务器,可以配置 git hooks 来约束提交。
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user