Quick Note: I had an error recently where RStudio nor EGit nor the command line would push my repo to github. I can't remember the exact error, although after some googling I found this SO answer that solved it
git config http.postBuffer 524288000
This fixed my problem.