Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git push failure (Github/RStudio)

I've used Git successfully on this machine in the past but suddenly I can no longer push my commits to the Github repo. The last change to the Git toolchain that I made was to install Git 1.8.5.2, in addition to the Github for Windows client. RStudio could not find Git unless I'd already started the Github client so I decided to simply install a stand-alone Git client and change the RStudio Git path.

Error message (RStudio):

error: cannot spawn rpostback-askpass: No such file or directory

fatal: could not read Username for 'https://github.com': No such file or directory

Troubleshooting:

  1. I can commit all projects.
  2. I can pull new projects.
  3. I cannot push any projects, I receive the same error message every time.
  4. I cannot push with Github or RStudio.
  5. Reinstalling /uninstalling Git / Github does not resolve the issue.

Setup:

This is an R project, with RStudio as my IDE / Git GUI.

I'm using Git 1.8.5.2 for Windows 7.

Let me know if there's any more information that you need.

Update 1:

Git GUI tells me that:

Error: hook execution requires sh (not in PATH).

Let's see if I can fix that...

like image 632
Alicaceae Avatar asked Jan 25 '14 03:01

Alicaceae


1 Answers

Found something that might help from here: https://github.com/STAT545-UBC/Discussion/issues/93

  • in RStudio, click on the "Tools" menu and select "Shell"
  • Run the following command: git push -u origin master
  • it might ask you for your git username and password. Supply this information, make sure it is correct
  • hopefully the push is successful, then you can close the window
  • Now make some more edits to some file so that you have new content to push
  • click on the "push" button in RStudio and this time the push should work
like image 60
Scott Newson Avatar answered Nov 13 '22 08:11

Scott Newson