Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reasons why git is not visible to Rstudio (OSX)

I have been trying for a few hours to use git within Rstudio on my macbook. However, the option to use git within version control is missing - the only option remains (none).

  • I have installed github, and then git directly, using the link given in the rstudio website.
  • I have attempted to run the bash script supplied with the git installation file.
  • I have verified that git is active on the machine through both github and directly through the command line.
  • I have located the git file in the hidden folder

    /local/git/bin/git

and pointed Rstudio to this using global options.

  • I have reinstalled git a couple of times.
  • I have logged off and on again multiple times.

Any solutions very welcome.

Thanks, Jon

like image 916
JonMinton Avatar asked Apr 30 '14 20:04

JonMinton


2 Answers

The same just happened on my mac. I narrowed down the issue to the Xcode developers package update. The fix in my case was:

  • From a shell go to /usr/bin
  • sudo ./git
  • Agree to the terms
  • Close and reopen RStudio

Voilà. Git has returned to RStudio.

like image 70
rudeboybert Avatar answered Oct 15 '22 15:10

rudeboybert


I just came across your question after I encountered a similar issue on windows. You've probably sorted yourself by now but just to let you & others know what worked for me.

  • From RStudio Tools, Global Options.
  • Option for Git Executable.
  • Browsed to git.exe in the git/bin folder.

Now working like a dream. Andy

like image 39
Andy Avatar answered Oct 15 '22 15:10

Andy