Update .github/prompts/gf.commit-push.prompt.md

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
John Guo
2026-01-23 15:40:51 +08:00
committed by GitHub
parent 0948eb32fc
commit 8e1b235a15

View File

@ -76,7 +76,8 @@ test(container/garray): add unit tests for sorted array
1. **检查待提交文件**
- 使用 `git status``git diff` 确认本次需要提交的变更
- 排除调试、临时或生成文件,以及可能包含敏感信息的文件
- 在暂存之前排除调试、临时或生成文件,以及可能包含敏感信息的文件,确保只提交相关修改
- 避免使用 `git add -A``git add .` 一次性暂存所有变更
2. **选择性暂存变更**
- 使用 `git add <file1> <file2> ...` 按文件添加需要提交的修改