claude-code/claude-zh/rules/common/git-workflow.md

25 lines
759 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.

# Git 工作流 (Git Workflow)
## 提交訊息格式 (Commit Message Format)
```
<類型>: <描述>
<選擇性內容主體>
```
類型 (Types)feat, fix, refactor, docs, test, chore, perf, ci
註:歸屬 (Attribution) 已透過 `~/.claude/settings.json` 在全域停用。
## Pull Request 工作流
建立 PR 時:
1. 分析完整的提交歷史(而不僅僅是最新的一次提交)。
2. 使用 `git diff [base-branch]...HEAD` 檢視所有變更。
3. 撰寫全面的 PR 摘要。
4. 包含帶有待辦事項 (TODO) 的測試計畫。
5. 推送時使用 `-u` 旗標(若是新分支)。
> 關於 Git 操作之前的完整開發流程規劃、TDD、程式碼審查
> 請參閱 [development-workflow.md](development-workflow.md)。