From 0519bb3c2e62ed91195ef3d0f9913ca2a74f95c4 Mon Sep 17 00:00:00 2001 From: AskaEth Date: Sat, 3 Oct 2026 19:39:39 +0800 Subject: [PATCH] =?UTF-8?q?chore(gitignore):=20=E5=BF=BD=E7=95=A5=20.env.*?= =?UTF-8?q?=20=E5=A4=87=E4=BB=BD=EF=BC=88=E4=BF=9D=E7=95=99=E6=A8=A1?= =?UTF-8?q?=E6=9D=BF=EF=BC=89=E2=80=94=E2=80=94=20=E9=98=B2=E5=AF=86?= =?UTF-8?q?=E9=92=A5=E8=AF=AF=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 仓库根出现未跟踪的 .env.bak(编辑器/工具生成的密钥备份,3876B),而 .gitignore 只忽略 .env,git add -A 会把它提交上去。现加 `.env.*` + 放行 `.env.example/.sample/.template`(当前被跟踪的 .env* 只有模板,故无副作用)。文件本身未删除/未读取(属主人资产)。 --- .gitignore | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.gitignore b/.gitignore index 4b974ba..4f16246 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,11 @@ DevDocs/ # 环境变量与密钥 .env +# 编辑器/工具生成的密钥备份(.env.bak / .env.old / .env.prod…)一律忽略,只放行模板 +.env.* +!.env.example +!.env.sample +!.env.template models.json channels.json plugins.json