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