.gitignore into the project root directory is not overriden by .gitignores into children directories
<p>In project root directory I have <code>.gitignore</code> file that ignores everything except gitignore files. Here is the content of the file:</p>
<pre><code>**/*
!.gitignore
</code></pre>
<p>Then in <strong><code>implementation/xml/</code></strong> I have another gitignore file with this content:</p>
<pre><code>!**/*
</code></pre>
<p>Then in <strong>implementation/xml/ant/</strong> I have created new file named <code>texd-odt-build.xml</code> full path <strong>(/implementation/xml/ant/texd-odt-build.xml)</strong>.</p>
<p>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  <code>texd-odt-build.xml</code> is still into the ignore list.</p>
<p>To check it out I used this command: <code>git status --ignored</code>. What might be the reason for &quot;children&quot; gitignore not working?</p>