From 5c97994f9f534eeb5544a7b32b0b91b1c74605eb Mon Sep 17 00:00:00 2001 From: Tobias Henkel Date: Sun, 2 Dec 2018 09:12:25 +0100 Subject: [PATCH] Fix ignored but tracked .keep file We ignore the directory zuul/web/static but want to keep the directory itself existing. We do this by having a .keep file in there which is excluded in the gitignore file. However we currently ignore the complete directory zuul/web/static so git ignores the exclude rule. Thus the .keep file is ignored but tracked which is not really what we want. Instead ignore all files below zuul/web/static. This way the exclude rule works and the .keep file is not ignored. Change-Id: I3b17d1c48c6da2c5920816153a1265dbec591d38 --- .gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 55cbe13af6..def55fe027 100644 --- a/.gitignore +++ b/.gitignore @@ -19,7 +19,7 @@ zuul/versioninfo dist/ cover/ htmlcov/ -zuul/web/static +zuul/web/static/* !.keep node_modules yarn-error.log