Commit and Push
claude-haiku-4-5協助產生符合專案規範的提交訊息,並推送到遠端儲存庫。
## 工作目錄資訊
將所有檔案重新設定成追蹤清單:
檔案變更與暫存狀態的清單:
檔案變更的詳細內容:
最近五筆提交訊息:
分支資訊:
- **遠端主要分支**: !`git symbolic-ref refs/remotes/origin/HEAD`
- **當前分支**: !`git branch --show-current`
所有分支清單:
## 流程
### 步驟 1:分析工作目錄資訊
分析「工作目錄資訊」中收集到的變更狀態,使用一次 AskUserQuestion 工具同時確認:
1. 要提交的檔案範圍(是否符合提交原子性)
2. 目標推送分支
#### 1-1. 檔案變更狀態
分析工作目錄的變更,判斷是否符合提交原子性:
**符合原子性**:所有變更都屬於同一個邏輯修改
- 不使用 AskUserQuestion 詢問檔案範圍
- 只詢問目標推送分支
- 直接提交所有變更
**違反原子性**:包含多個不相關的修改
- 依 Conventional Commits 類型分類檔案:
- `feat:` 新功能
- `fix:` 修復問題
- `docs:` 文件更新
- `style:` 程式碼格式調整
- `refactor...Commit changes with sign-off and push to origin by default
Organize your work into commits so that it's easy for me to review. Then push to remote.
commit and push all local changes to remote repo
commit and push all local changes to remote repo
Commit all changes and push to remote with git pub