From 21be6d19f71bd39e41dd24394bab13ca5a983504 Mon Sep 17 00:00:00 2001 From: uncle6me-web Date: Sun, 9 Aug 2026 13:24:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=8A=20.dev.vars=20=E5=8A=A0=E9=80=B2=20.g?= =?UTF-8?q?itignore=E2=80=94=E2=80=94=E6=9C=AC=E6=A9=9F=E5=AF=86=E9=91=B0?= =?UTF-8?q?=E6=AA=94=E5=8E=9F=E6=9C=AC=E5=AE=8C=E5=85=A8=E6=B2=92=E8=A2=AB?= =?UTF-8?q?=E6=93=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 實查:cypher-executor/.dev.vars(3 行)與 kbdb/.dev.vars(1 行)都是 untracked 且 git check-ignore 零命中,任何人一次 git add -A 就會把金鑰推上 Gitea。 歷史上沒有被 commit 過,所以是純預防、不需要清歷史。 對齊 D36「金鑰只有一個家」:真身不落在 repo 上,不是靠自律,是拿不到。 Co-Authored-By: Claude Opus 5 --- .gitignore | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.gitignore b/.gitignore index 425077d..6bb0488 100644 --- a/.gitignore +++ b/.gitignore @@ -63,3 +63,8 @@ console-ui/.staging/ # 「上一次通過線上實測的部署」紀錄——本機事實,不隨 repo 走 # (刻意不進版控:新 checkout 沒有紀錄 ⇒ 狀態未知 ⇒ 該被大聲提醒,而不是繼承別人的綠燈) console-ui/.deploy-state.json + +# Wrangler 本機開發用的密鑰檔——絕不進版控(2026-08-09 補:原本沒被擋, +# 而同目錄有 agent 在動工,一次 git add -A 就會把金鑰推上去) +.dev.vars +**/.dev.vars