Files
digital-psychology/apps/docs/standards/01-git.md
T
jackyu66gitandCursor 2fb1dfee14 chore: seal Design Vision v1 and monorepo scaffold
Archive the differentiated YuXinGu product docs, AI engineering system,
design contract, and Go/Vue scaffold. Next execution prioritizes Cece-parity
over early innovation (see .ai/product/STRATEGY.md).

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-02 16:00:44 +08:00

38 lines
839 B
Markdown
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.
# 01 Git 规范
## 策略
Trunk-Based Development
- 默认分支:`main`(可发布)。
- 功能分支:`feature/<short-name>`,生命周期尽量 < 2 天。
- 修复:`fix/<short-name>`
- 不设长期 `develop`
## Commit
Conventional Commits
```
<type>(<scope>): <subject>
[optional body]
```
常用 type`feat` `fix` `refactor` `perf` `style` `docs` `test` `chore`
scope 示例:`auth` `report` `sdk` `user-h5` `api`
subject 用英文或中文均可,但同一仓库保持一种;推荐英文短句,说明意图。
## Release
- 打 tag`v0.1.0`semver)。
- Changelog 记录在 `apps/docs/CHANGELOG.md`(有正式发布时更新)。
## 禁止
- `git commit --no-verify`(除非负责人明确批准)。
- 强制推送 `main`
- 提交密钥、`.env`、本地数据库文件。