复现已有算法
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
---
|
||||
name: git-commit
|
||||
description: Git 提交规范。用于需要提交代码时,统一中文提交信息格式、禁用表情符号、禁止未授权自动提交。
|
||||
---
|
||||
|
||||
# Git 提交规范
|
||||
|
||||
## 提交格式
|
||||
|
||||
```text
|
||||
<类型>: <简要描述>
|
||||
|
||||
<详细说明(可选)>
|
||||
```
|
||||
|
||||
## 类型(中文)
|
||||
|
||||
- 功能
|
||||
- 修复
|
||||
- 重构
|
||||
- 优化
|
||||
- 样式
|
||||
- 文档
|
||||
- 测试
|
||||
- 构建
|
||||
- 清理
|
||||
|
||||
## 规则
|
||||
|
||||
- 提交信息全中文
|
||||
- 禁止使用 emoji
|
||||
- 简要描述尽量 <= 50 字
|
||||
- 详细说明用 `- ` 列点
|
||||
- 默认独立提交;仅在用户明确要求时 `--amend`
|
||||
- 禁止未授权自动执行 `git commit`
|
||||
- 如需提交命令,使用:`git -c commit.gpgsign=false commit ...`
|
||||
Reference in New Issue
Block a user