From 563799f704df7c922ee08af5914947b9e0009840 Mon Sep 17 00:00:00 2001 From: Tanuj Tekriwal Date: Tue, 22 Oct 2024 11:28:33 +0000 Subject: [PATCH] Fix .gitignore issue with not showing new files This patch will fix the .gitignore issue where it didnt show new files created inside non-ignored folders. Tests Done: Create new file inside caas and see it it shows in git status Tracked-On: OAM-126628 Signed-off-by: Tanuj Tekriwal Signed-off-by: Vignesh T Prabhu --- .gitignore | 10 +++++++++- README | 5 +++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 README diff --git a/.gitignore b/.gitignore index d76605bd..edc95a90 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,12 @@ -* +# Ignore all files at the current directory level +/* +# Allow subdirectories and their contents +!*/ +# Allow all files within existing subdirectories +!*/** +# Ignore any new directories created at the root level +/*/ !.gitignore +!README !LICENSE !caas diff --git a/README b/README new file mode 100644 index 00000000..e4c37efe --- /dev/null +++ b/README @@ -0,0 +1,5 @@ +### Important Notice ### + +# Any new file or folder added in device/intel/project-celadon +# needs to be added to the device/intel/common/project-celadon/.gitignore +# file as others are added to be visible for git repo.