Reputation: 1097
In spite of executing several methods and steps, RStudio in my machine still won't detect git and I need to push some of my projects so they remain secure and tracked. I've already made a repository in my github account and cloned it in my main local git folder but I don't see any git interface in RStudio. These are the steps I've done so far:
Enable svn/git interface through RStudio settings. The path to git executable was wrong so I set it up to usr/bin/git
. The executable for svn is still usr/bin/svn
so that is fine.
Installed latest build of git 2.10.1 for mac. When running which git
in Terminal, the console provides me with the executable path which of course means git is there and ready.
Restarted Rstudio after doing these operations, and still there won't be any git interface.
RStudio doesn't ask if a new project needs to be a git repository in File>New Project>Empty Directory. All I see is standard interface.
Choosing Git under File>New Project>Version Control gives me an error that git hasn't been detected under the existing path usr/bin/git
when the same is reproduced by the Terminal.
Unchecking and checking git interface under global options and restarting RStudio does nothing. Under project options, there is no 'git' under version control menu.
Checked if existing directories are git repositories and they are. Should be automatically getting git interface then.
I'm running a MBP 2013, macOS 10.12 with R 3.3.2 'Sincere Pumpkin Patch' and RStudio 1.0.136. Do I need to update any packages? I also have the github client AND SourceTree client installed (using the latter) and almost forgot, I have also configured git with my username and email in the shell command and there seems to be no problems as far as those settings are concerned. Is there anything else missing here?
Upvotes: 2
Views: 593
Reputation: 38136
You should set Git/SVN interface like below:
The paths for git and svn are the directories which they installed. But you use usr/bin/git
and usr/bin/svn
instead.
Upvotes: 1