Folder in .gitignore is still in repo : <p>I have added a folder in my .gitignore file. But when I pushed to the repo it was still being pushed. my folder structure is:</p>

<pre><code>UI/node_modules
</code></pre>

<p>In the .gitignore I have added the following:</p>

<pre><code>/UI/node_modules
/UI/bin
</code></pre>

<p>Is there anything I am doing wrong? gitignore file sits at the same level as the UI folder</p>
