Strengthen push policy: don't ask, just push

原条目 "push by default" 留了模糊空间, 实测我仍然会在 commit 后反复确认
"要不要 push", 用户明确要求消除这种冗余询问; 加 "don't ask first, just push"
固化下来, 只在用户显式拒绝或仓库没 remote 时才跳过。
This commit is contained in:
Zhang Jiahao
2026-04-21 00:58:51 +08:00
parent 23c7037b57
commit 211c0f05d8

View File

@@ -8,7 +8,7 @@ Behavioral guidelines to reduce common LLM coding mistakes. Merge with project-s
- **Address the user as**: Charles
- **Reply language**: Chinese for prose; keep code, commands, and technical terms in English
- **Git push policy**: push by default when there are commits. Only skip if the user says not to, or the repo lacks a remote / credentials
- **Git push policy**: push by default when there are commits**don't ask first, just push**. Only skip if the user explicitly says not to, or the repo lacks a remote / credentials
- **Version-control hygiene**: commit messages must explain *why*, not just *what*. Confirm before risky ops (`push --force`, `reset --hard`, `rm -rf`, branch deletion)
- **Default git remote**: `git.deepknow.site` (credentials stored in memory)
- **Gitea management** (`git.deepknow.site/Knowit`, API via `curl`):