From 3ab92d672db589e67a6bfa3616c81f5b3d5497b6 Mon Sep 17 00:00:00 2001 From: yuyx <237899745@qq.com> Date: Tue, 17 Feb 2026 19:07:11 +0800 Subject: [PATCH] chore: properly ignore runtime storage and data directories --- .gitignore | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index ac8276a..02f9f93 100644 --- a/.gitignore +++ b/.gitignore @@ -15,9 +15,11 @@ __pycache__/ # 临时文件 backend/uploads/ -backend/storage/ # 本地存储数据 +# 本地存储数据目录(保留 .gitkeep) +backend/storage/* !backend/storage/.gitkeep -backend/data/ # 数据库目录 +# 数据库目录(保留 .gitkeep) +backend/data/* !backend/data/.gitkeep *.log .DS_Store