From 218d405f56fa40ad13e5380a556142c3e6fcb5f7 Mon Sep 17 00:00:00 2001 From: ZF sun <34314687@qq.com> Date: Wed, 24 Dec 2025 11:06:47 +0800 Subject: [PATCH] chore: update .gitignore --- docker/mysql_db_data/.gitignore | 15 +++++---------- docker/redis_data/.gitignore | 15 +++++---------- 2 files changed, 10 insertions(+), 20 deletions(-) diff --git a/docker/mysql_db_data/.gitignore b/docker/mysql_db_data/.gitignore index fa4920ab5..bd33cd36e 100644 --- a/docker/mysql_db_data/.gitignore +++ b/docker/mysql_db_data/.gitignore @@ -1,14 +1,9 @@ -# 忽略目录下所有文件和子目录 +# 忽略所有文件 * -# 忽略所有子目录 -*/ -# 但不忽略 .gitkeep 文件 -!.gitkeep -# 不忽略 .gitignore 文件自身 + +# 只保留指定的 .gitkeep 文件 !.gitignore -# 不忽略 development/.gitkeep 文件 !development/.gitkeep -# 不忽略 production/.gitkeep 文件 +!test/.gitkeep !production/.gitkeep -# 不忽略 test/.gitkeep 文件 -!test/.gitkeep \ No newline at end of file +!staging/.gitkeep \ No newline at end of file diff --git a/docker/redis_data/.gitignore b/docker/redis_data/.gitignore index fa4920ab5..bd33cd36e 100644 --- a/docker/redis_data/.gitignore +++ b/docker/redis_data/.gitignore @@ -1,14 +1,9 @@ -# 忽略目录下所有文件和子目录 +# 忽略所有文件 * -# 忽略所有子目录 -*/ -# 但不忽略 .gitkeep 文件 -!.gitkeep -# 不忽略 .gitignore 文件自身 + +# 只保留指定的 .gitkeep 文件 !.gitignore -# 不忽略 development/.gitkeep 文件 !development/.gitkeep -# 不忽略 production/.gitkeep 文件 +!test/.gitkeep !production/.gitkeep -# 不忽略 test/.gitkeep 文件 -!test/.gitkeep \ No newline at end of file +!staging/.gitkeep \ No newline at end of file