title: how to get files out of the git tab if rstudio
body: <p>I'm a doof and keep uploading .Rpoj, .Rbuildignore and .gitignore to github.  Some of these files mess with other project contributor's local repo when they pull them.  I've figure out how to fix this after I've done it but it involves so command line code:</p>
  
  <pre><code>git reset --hard (number of last good commit)
  git push -f origin HEAD^:master
  </code></pre>
  
  <p>I prefer not to do this monkey business.  Is there a way to remove these pesky files from the git tab windows so I don't accidentally upload them anymore.  I don't even know what to search for to find an answer.</p>
  
  <p>Here's a screen shot of files I need in my local repo but want to disappear out of the git tab window in RStudio.</p>
  
  <p><img src="https://i.stack.imgur.com/rLbBd.png" alt="enter image description here"></p>