title: Unable to add .env files to gitignore?
body: <p>I've added a several entries as below to my <code>.gitignore</code></p>
  
  <pre><code>.env
  .env.production
  .env.staging
  .env.uat
  </code></pre>
  
  <p>Now what I'm confused is it doesn't seem to be taking effect, both visually on VS Code nor when I run <code>git status</code>, it doesn't list all the files that I'm expecting to be removed/deleted? I must've missed something obvious but I couldn't spot it</p>
  
  <p><a href="https://i.stack.imgur.com/7dtSH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7dtSH.png" alt="enter image description here"></a></p>
  
  <p>Visual on VS Code as below:</p>
  
  <p><a href="https://i.stack.imgur.com/m07QU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/m07QU.png" alt="enter image description here"></a></p>