title: Git is ignoring gitignore file under Windows 10
body: <p>Git is ignoring the folders in .gitignore file.
  Here is my .gitignore : (env is a folder generated by venv in Python )</p>
  <pre><code>#folders
  env/**
  pdfs/**
  
  
  # files
  
  #source files
  /timeformat.py
  /pdfreader.py
  </code></pre>
  <p>I already did : <code>git rm -r --cached .</code> then <code>git add .</code> but it's adding all the files under env/Lib/site-packages<br />
  What is the problem ?</p>
  <p><strong>EDIT :</strong></p>
  <p>here is my directory structure :</p>
  <p><a href="https://i.stack.imgur.com/n5yuR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/n5yuR.png" alt="enter image description here" /></a>
  <a href="https://i.stack.imgur.com/Y1eii.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Y1eii.png" alt="enter image description here" /></a></p>