title: git status showing untracked files although ignored
body: <p>I have some entries in my <code>.gitignore</code> file in my <code>git</code> repository but some of the entries still show up as untracked files.</p>
  <p>The important parts from my <code>.gitignore</code> file:</p>
  <pre><code># IDE settings
  .idea/
  
  # Environments
  win_venv/
  
  # Byte-compiled / optimized / DLL files
  __pycache__/
  
  # Distribution / packaging
  *.egg-info/
  </code></pre>
  <p>However, when I run <code>git status</code>, this shows up:</p>
  <pre><code>Untracked files:
    (use &quot;git add &lt;file&gt;...&quot; to include in what will be committed)
  
          .idea/
          mypackage.egg-info/
          mypackage/__pycache__/
          mypackage/schema/__pycache__/
          mypackage/schema/models/__pycache__/
          mypackage/tests/__pycache__/
          win_venv/
  </code></pre>
  <p>Anyone knows, why this can happen or what the mistakes in my <code>.gitignore</code> file are?</p>
  <p>This question is different to the <a href="https://stackoverflow.com/questions/1274057/how-to-make-git-forget-about-a-file-that-was-tracked-but-is-now-in-gitignore">answer</a> suggested, as shown files are not tracked. This issue also happens, if I create a new virtual environment <code>venv</code>, having the appropriate entry in the <code>.gitignore</code> file.</p>