Explorar o código

docs (1.57.2 -> 1.57.2): 优化 Git 工作流文档,将 git pull 步骤提前到流程开始阶段

- 将 git pull 检查从步骤 2.5 移到步骤 2,确保在分析文件变更前先同步远程更新
- 重新编号后续步骤(步骤 2、3 变为步骤 3、4),保持流程逻辑清晰
- 避免在分析本地变更后才发现需要处理远程冲突

改动文件:
- .clinerules/workflows/git-commit-and-push.md
dengdx hai 6 días
pai
achega
84eb0494f5
Modificáronse 1 ficheiros con 4 adicións e 4 borrados
  1. 4 4
      .clinerules/workflows/git-commit-and-push.md

+ 4 - 4
.clinerules/workflows/git-commit-and-push.md

@@ -11,15 +11,16 @@ Automate the Git commit and push process by intelligently analyzing file changes
 ## 1. Open New Terminal and Check Git Status
 
 1. Use the `execute_command` tool to open a new terminal session.
+2. Use the `execute_command` tool to run `git pull` . if there is something wrong or conflict , prompt the user to interupt to fix 
 
-2. Use the `execute_command` tool to execute `git status` to check current repository state.
+3. Use the `execute_command` tool to execute `git status` to check current repository state.
 
    - Identify modified files
    - Identify new (untracked) files
    - Identify deleted files
    - Display current branch information
 
-3. Analyze the output to understand the scope of changes in the current working directory. you should ignore dev.ts file.
+4. Analyze the output to understand the scope of changes in the current working directory. you should ignore dev.ts file.
 
 ## 2. Analyze File Changes and Generate Commit Message
 
@@ -59,8 +60,7 @@ 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