Explorar el Código

优化Git提交推送工作流程文档

- 添加git pull步骤(步骤2.5),确保在提交前同步远程更新
- 移除git push步骤,简化工作流程
- 重新编号步骤3-6,保持文档结构清晰
- 优化步骤引用,确保内部链接准确性

改动文件:
- .clinerules/workflows/git-commit-and-push.md
dengdx hace 6 días
padre
commit
cfa1903ea4
Se han modificado 1 ficheros con 8 adiciones y 13 borrados
  1. 8 13
      .clinerules/workflows/git-commit-and-push.md

+ 8 - 13
.clinerules/workflows/git-commit-and-push.md

@@ -59,14 +59,14 @@ Automate the Git commit and push process by intelligently analyzing file changes
     - src/pages/exam/ContentAreaMedium.tsx
     - src/pages/exam/ContentAreaSmall.tsx
     `
+## 2.5 Use the `execute_command` tool to run `git pull`
+   if there is something wrong or conflict , prompt the user to interupt to fix 
+## 3 Important ! Show the generated commit message prominently so the user can verify its accuracy.
 
+## 4. Present Command List for User Review
 
 
-## 3. Present Command List for User Review
-
-1. Important ! Show the generated commit message prominently so the user can verify its accuracy.
-
-## 4. Interactive Command Execution Confirmation
+## 5. Interactive Command Execution Confirmation
 
 1. Use the `ask_followup_question` tool to ask the user for confirmation with clickable options:
 
@@ -74,11 +74,11 @@ Automate the Git commit and push process by intelligently analyzing file changes
    - Options: ["开始执行命令", "修改提交信息", "取消操作"]
 
 2. Handle user response:
-   - If "开始执行命令": Proceed to step 5
+   - If "开始执行命令": Proceed to step 6
    - If "修改提交信息": Ask user for new commit message and update commands
    - If "取消操作": Stop the workflow
 
-## 5. Execute Git Commands Step by Step
+## 6. Execute Git Commands Step by Step
 
 1. **Execute git add .**
 
@@ -93,13 +93,8 @@ Automate the Git commit and push process by intelligently analyzing file changes
    - Display the commit result including commit hash
    - Confirm the commit was successful
 
-3. **Execute git push**
-
-   - Use the `execute_command` tool to run `git push`
-   - Display the push result
-   - Confirm files were successfully pushed to remote repository
 
-4. **Final Confirmation**
+3. **Final Confirmation**
    - Use the `attempt_completion` tool to present the final results
    - Include summary of:
      - Files that were committed