market-assistant/.cursor/rules/git-commit-zh.mdc
2026-04-15 17:58:25 +08:00

14 lines
690 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
description: 在本仓库执行 git commit 时,提交说明使用中文
alwaysApply: true
---
# Git 提交说明使用中文
在本仓库内由助手或开发者写入的 **提交说明**`git commit -m` 与正文)**须以中文为主**
- **第一行**:简短说明本次变更;推荐使用 `type(scope): 描述`Conventional Commits其中 **描述为中文**。
- **正文**(若有):动机、影响范围、注意事项等,用**完整通顺的中文句**技术名词、包名、API 名可保留英文。
避免整段英文提交说明;避免一句内中英碎片堆砌。与「先对齐再改代码」类流程并存时,仍以本约定为准。