From 8f546b5737a7e99a68bda317955aad9b60dab569 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=94=90=E6=B0=B8=E5=B7=9D?= Date: Fri, 26 Jun 2026 13:40:30 +0000 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20docs/doc?= =?UTF-8?q?s/zdnf5m.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/docs/zdnf5m.md | 66 --------------------------------------------- 1 file changed, 66 deletions(-) delete mode 100644 docs/docs/zdnf5m.md diff --git a/docs/docs/zdnf5m.md b/docs/docs/zdnf5m.md deleted file mode 100644 index a21d517..0000000 --- a/docs/docs/zdnf5m.md +++ /dev/null @@ -1,66 +0,0 @@ ---- -url: zdnf5m ---- - -# git提交规范 - - -# ![image.png](../assets/1593512815457-289afdbb-b386-4f32-8218-bea5e73aba5d.png) - -# 1. Git commit规范 - -## 1.1. 格式 -``` -(): -``` -示例: -``` -fix(ngRepeat): fix trackBy function being invoked with incorrect scope -``` - -## 1.2. type -主要的提交类型如下: - -| Type | 说明 | 备注 | -| --- | --- | --- | -| `feat` | 提交新功能 | 常用 | -| `fix` | 修复bug | 常用 | -| `docs` | 修改文档 | | -| `style` | 修改格式,例如格式化代码,空格,拼写错误等 | | -| `refactor` | 重构代码,没有添加新功能也没有修复bug | | -| `test` | 添加或修改测试用例 | | -| `perf` | 代码性能调优 | | -| `chore` | 修改构建工具、构建流程、更新依赖库、文档生成逻辑 | 例如vendor包 | - - -## 1.3. scope -表示此次commit涉及的文件范围,可以使用`*`来表示涉及多个范围。 - -## 1.4. subject -描述此次commit涉及的修改内容。 - -- 使用祈使句(动词开头)、动宾短语。 -- 第一个字母不要大写。 -- 不要以`.`句号结尾。 - -# 2. Git commit工具 -安装`commitizen`和`cz-conventional-changelog`。 -``` -npm install -g commitizen cz-conventional-changelog -echo '{ "path": "cz-conventional-changelog" }' > ~/.czrc -``` -使用cz-cli -``` -$ git cz -cz-cli@4.0.3, cz-conventional-changelog@3.0.1 -? Select the type of change that you're committing: (Use arrow keys) -❯ feat: A new feature - fix: A bug fix - docs: Documentation only changes - style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc) - refactor: A code change that neither fixes a bug nor adds a feature - perf: A code change that improves performance - test: Adding missing tests or correcting existing tests -(Move up and down to reveal more choices) -``` -[
](https://www.huweihuang.com/linux-notes/git/git-alias-zsh.html)