From c745f0c0707b6f644fa86e835caa557a369b1dda Mon Sep 17 00:00:00 2001 From: DXC Date: Tue, 15 Sep 2026 17:04:34 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=B7=BB=E5=8A=A0=20.gitignore?= =?UTF-8?q?=EF=BC=8C=E6=8E=92=E9=99=A4=E6=95=B0=E6=8D=AE=E5=BA=93=E4=B8=8E?= =?UTF-8?q?=E6=9E=84=E5=BB=BA=E4=BA=A7=E7=89=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit instance/ 里是 SQLite 生产库及其备份(已 36MB+),此前处于未跟踪状态, 一次 git add -A 就会把 70MB+ 的数据库提交进仓库。 同时排除 build/dist/web_dist/__pycache__ 等可由源码重新生成的产物。 --- .gitignore | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6544b77 --- /dev/null +++ b/.gitignore @@ -0,0 +1,36 @@ +# ========================================================= +# 运行时数据 —— 绝不入库 +# instance/ 里是 SQLite 生产库(已 36MB+)及其备份, +# 一旦提交会让仓库体积失控,且会覆盖服务器上的真实数据。 +# ========================================================= +instance/ +*.db +*.db-journal +*.db-wal +*.db-shm +*.sqlite3 + +# ========================================================= +# 构建产物(可由源码重新生成,不入库) +# ========================================================= +__pycache__/ +*.py[cod] +*$py.class +build/ +build_new/ +dist/ +dist_new/ +web_dist/ +*.exe + +# ========================================================= +# 临时与备份 +# ========================================================= +*.bak +*.bak-* +*.log + +# ========================================================= +# 编辑器 +# ========================================================= +.vscode/