title: How do I remove a file from local git repository and local file system but not from remote repository?
body: <p>I have been trying to delete a file from my local file system and local git repository.</p>
  <p>I am using <code>git rm --cached &lt;file name&gt;</code></p>
  <p>But whenever I am working with another file and push the changes git also deletes the locally removed file from my remote repository. I want the file to stay on my GitHub.</p>
  <p>I would really appreciate some help.</p>