title: Undo git commit in Rstudio that is too big to push
body: <p>I am very new to github and am trying to incorporate it into my work for the first time. I am working in RStudo, using the commit and push buttons in the gui. I put some of my data in the folder on my computer that I am working out of. I made a few commits, then I commited that data, and then I made another few commits. Then I tried to push the whole thing to github. However, I got an error message saying:</p>
  
  <pre><code>remote: error: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com.        
  remote: error: Trace: f4a84c3a176d2c77039d041a21c0c455        
  remote: error: See http://git.io/iEPt8g for more information.        
  remote: error: File S_Fulltaxonomy.csv is 158.06 MB; this exceeds GitHub's file size limit of 100.00 MB        
  To git@github.com:moanam/paper.git
   ! [remote rejected] master -&gt; master (pre-receive hook declined)
  error: failed to push some refs to 'git@github.com:moanam/paper.git'
  </code></pre>
  
  <p>My branch is now ahead of origin/master by 10 commits, with the problem commit somewhere in the middle.</p>
  
  <p>I have looked for solutions to this and have found posts like
  <a href="https://stackoverflow.com/questions/30803175/undo-commit-in-middle-of-git-history">undo commit in middle of Git history</a>,
  <a href="https://stackoverflow.com/questions/179123/how-to-modify-existing-unpushed-commits">How to modify existing, unpushed commits?</a>
  and
  <a href="https://stackoverflow.com/questions/20002557/how-to-remove-a-too-large-file-in-a-commit-when-my-branch-is-ahead-of-master-by">How to remove a too large file in a commit when my branch is ahead of master by 5 commits</a></p>
  
  <p>However, the solutions to this are a line of code where the original asker is supposed to substitute a few words and run it somewhere. I really am very new to this and have no idea where to run all this code, what to substitute and how to find and change the problem commit in my work. How do I do this? Or is there a gui based version of undoing the commit in RStudio? Or could someone please explain exactly how to use the code?</p>
  
  <p>I know that this is probably a very simple question and I am sorry for wasting your time with it. However, I have genuinely spent quite a while looking already and can't find anything simple enough for me to work with! There is always too much knowledge assumed. Thanks for your help!</p>