In project root directory I have .gitignore
file that ignores everything except gitignore files. Here is the content of the file:
**/*
!.gitignore
Then in implementation/xml/
I have another gitignore file with this content:
!**/*
Then in implementation/xml/ant/ I have created new file named texd-odt-build.xml
full path (/implementation/xml/ant/texd-odt-build.xml).
Now the second gitignore file that is two folders deeper underneath the one (gitignore file) residing in the project root directory. Then the second gitignore should override the one in the root right? But using the bash I see that texd-odt-build.xml
is still into the ignore list.
To check it out I used this command: git status --ignored
. What might be the reason for "children" gitignore not working?