From 66632bb7d6f615b5f12b7978655125c318f7ca90 Mon Sep 17 00:00:00 2001 From: butubb <1422726308@qq.com> Date: Sun, 13 Sep 2026 13:11:41 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20.gitignore=20=E5=BF=BD=E7=95=A5=20.env?= =?UTF-8?q?.*=EF=BC=88=E5=90=AB=E5=AF=86=E9=92=A5=E7=9A=84=E5=A4=87?= =?UTF-8?q?=E4=BB=BD=E6=96=87=E4=BB=B6=EF=BC=89=EF=BC=8C=E6=98=BE=E5=BC=8F?= =?UTF-8?q?=E6=94=BE=E8=A1=8C=20.env.example?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 220 上切 MySQL 前留的 .env.bak_before_mysql 含生产 WEB_SECRET_KEY 与新加的 DB_PASSWORD,git status 显示为未跟踪 —— 一次 git add . 就会把生产密钥提交进去。 --- .gitignore | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index a7c74b9..ca09196 100644 --- a/.gitignore +++ b/.gitignore @@ -38,8 +38,11 @@ desktop.ini *.bak # 密钥/环境变量(真实 .env 含 token/密钥,绝不提交) +# .env.* 一并忽略:改配置前留的 .env.bak_xxx / .env.old 同样含生产密钥, +# 220 上就出现过一次(2026-09-13 切 MySQL 时的备份),差点被 git add . 带进去。 .env -.env.local +.env.* +!.env.example bin/adb/*