From 211c0f05d85402319e7fd59ceb5ca970969a749d Mon Sep 17 00:00:00 2001 From: Zhang Jiahao Date: Tue, 21 Apr 2026 00:58:51 +0800 Subject: [PATCH] Strengthen push policy: don't ask, just push MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 原条目 "push by default" 留了模糊空间, 实测我仍然会在 commit 后反复确认 "要不要 push", 用户明确要求消除这种冗余询问; 加 "don't ask first, just push" 固化下来, 只在用户显式拒绝或仓库没 remote 时才跳过。 --- CLAUDE.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CLAUDE.md b/CLAUDE.md index 1b62173..265d171 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -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`):