Browse Source

docs: 更新Git工作流程文档,添加git diff命令使用说明

- 补充git diff命令使用规范,确保获取完整diff内容
- 明确使用--no-pager参数避免分页显示

改动文件:
- .clinerules/workflows/git-commit-and-push.md
dengdx 19 hours ago
parent
commit
69ced92a92
1 changed files with 1 additions and 0 deletions
  1. 1 0
      .clinerules/workflows/git-commit-and-push.md

+ 1 - 0
.clinerules/workflows/git-commit-and-push.md

@@ -58,6 +58,7 @@ Automate the Git commit and push process by intelligently analyzing file changes
     - src/pages/exam/ContentAreaSmall.tsx
     `
 5. when analyzing modified files , ignore the dev.ts file unless the user tell to include the file . This is really important.
+6. when use 'git diff' to get diff context for a file , you should use 'git --no-pager diff XXX' to ensure to get whole content , no pager , no need to manually help to get all contents.
 ## 3. Present Command List for User Review
 
 1. Generate the complete list of Git commands to be executed: