title: Remove Rproj file from git repository?
body: <p>I inadvertently pushed the RStudio <code>pkg.Rproj</code> file to my git repository, and now I'm afraid to pull it to another computer. I found <a href="https://stackoverflow.com/questions/42955689/should-i-check-an-rproj-file-created-by-rstudio-into-git">this answer</a> which says it's harmless, and maybe even desirable. But still I am not sure, because the file is created locally by setting up a project in RStudio. If the path to my project directory is different on a different machine, and that information is in <code>.Rproj</code>, then it'd be a mess.</p>
  
  <p>Related, perhaps, is I added ther project file to <code>.gitignore</code>, but it still shows up in my Git window on RStudio.</p>
  
  <p>What exactly is in an <code>.Rproj</code> file? Can anybody advise?</p>
  
  <p>If I do need to remove it from my repository, is there a more elegant way to do it than copying it elsewhere locally, deleting it, pushing it (which may not work because of no <code>.Rproj</code> file), making a copy and then pulling it on my other PC, and restoring it on both machines?</p>