.gitignore not ignoring the sub-directory .DS_Store files
<p>I tried everypossible solution I found here but none working. This is my .gitignore file:</p>

<pre><code>*.pyc
.DS_Store
static/.DS_Store
</code></pre>

<p>It ignores .DS_Store files in the root directory of my repo but doesn't in the subdirectories like the directory named static. I even tried to add the follwoing in the .gitidnore files but they also don't work:</p>

<pre><code>*/.DS_Store
**/.DS_Store
*DS_Store
</code></pre>