Git push failure (Github / RStudio)

I have used Git successfully on this machine in the past, but all of a sudden I can no longer push my commitments to the Github repository. The last change in the Git toolchain that I made was to install Git 1.8.5.2, in addition to the Github client for Windows. RStudio could not find Git if I had not already started the Github client, so I decided to just install the standalone Git client and change the path of RStudio Git.

Error Message (RStudio):

error: rpostback-askpass cannot appear: no such file or directory

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

Troubleshooting:

  • I can complete all projects.
  • I can pull out new projects.
  • I cannot push any projects, I get the same error message every time.
  • I can not click Github or RStudio.
  • Reinstalling / uninstalling Git / Github does not fix the problem.

Setup:

This is an R project, and RStudio is like my IDE / Git GUI.

I am using Git 1.8.5.2 for Windows 7.

Let me know if you need more information.

Update 1:

The Git GUI tells me that:

Error: Capturing requires sh (not in PATH).

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

+6
source share
2 answers

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

  • in RStudio, click "Tools" and select "Shell"
  • Run the following command: git push -u origin master
  • it may ask you for git username and password. Provide this information, make sure that it is correct.
  • I hope that the click will be successful, then you can close the window
  • Now make a few changes for a file so that you have new content to click
  • press the push button in RStudio, and this time the press should work
0
source

Here is another suggested solution: https://github.com/OHI-Science/ohicore/issues/104

git config --global credential.helper osxkeychain 
0
source

All Articles