Skip to content

Commit 10eeb3e

Browse files
committed
docs : 文档更新
1 parent cf5ed9e commit 10eeb3e

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

GitCommitMSG.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# Git Commit Message 规范
2+
3+
## 格式
4+
5+
```
6+
<type>(<scope>): <subject>
7+
<BLANK LINE>
8+
<body>
9+
<BLANK LINE>
10+
<footer>
11+
```
12+
13+
1. `<type>`: 提交的类型,必填。
14+
2. `<scope>`: 提交的范围,可选。
15+
3. `<subject>`: 提交的主题,必填。
16+
4. `<body>`: 提交的详细描述,可选。
17+
5. `<footer>`: 一些备注信息,可选。
18+
19+
## 类型
20+
21+
### 常用类型
22+
23+
- chore : 构建过程或辅助工具变动
24+
- docs : 文档更新
25+
- feat : 新功能(feature)
26+
- fix : 修复bug
27+
- perf : 性能优化
28+
- refactor : 代码重构(非新增功能或修复bug)
29+
- style : 代码格式调整(不影响代码运行)
30+
- test : 添加或修改测试代码
31+
32+
### 版本控制
33+
34+
- cherry-pick : 合并指定提交
35+
- merge : 合并分支
36+
- revert : 回滚到上一个版本
37+
38+
### 项目管理
39+
40+
- feature : 新功能开发
41+
- fix : 修复bug
42+
- hotfix : 紧急修复
43+
- init : 项目初始化
44+
- release : 发布版本
45+
- wip : 开发中的工作

0 commit comments

Comments
 (0)