From 8e1b235a15006c28382d1325c2b1b79b9e71832c Mon Sep 17 00:00:00 2001 From: John Guo Date: Fri, 23 Jan 2026 15:40:51 +0800 Subject: [PATCH] Update .github/prompts/gf.commit-push.prompt.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .github/prompts/gf.commit-push.prompt.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/prompts/gf.commit-push.prompt.md b/.github/prompts/gf.commit-push.prompt.md index 8d2358dfb..760a3de00 100644 --- a/.github/prompts/gf.commit-push.prompt.md +++ b/.github/prompts/gf.commit-push.prompt.md @@ -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 ...` 按文件添加需要提交的修改