title: .gitignore not working: files that should be ignored still get committed
body: <p>I'm trying to create a new git repository from existing folder. I've created a <code>.gitignore</code> file in the root of the folder. But if I say</p>
  
  <pre><code>git add *
  git commit
  git push
  </code></pre>
  
  <p>files that should be ignored still get committed to the remote repository. I'm on Windows.
  Also I've bought a license for SmartGIT. It also seems to ignore <code>.gitignore</code>. I have to manually select which new files to commit.</p>