title: git rm --cached not working
body: <p>I have been trying to remove some files from the git version control system so that they are not pushed on commits. </p>
  
  <p>Both <em>git rm --cached filename</em> and <em>git rm --force --cached filename</em> not working for several files. Basically the removed files do get pushed to github (not when I change the files in question but only when I edit and commit other files in the project).</p>
  
  <p>Furthermore, for a couple of files I get <strong>fatal: pathspec did not match any files error</strong> when the files do exist in the path for git rm command.</p>
  
  <p>Something is foobared here but I don't know how to reset everything safely. Can you please help.</p>