Kaden Killpack
Kaden Killpack

Reputation: 451

RStudio git repository disappeared

I just updated my Mac OS to Mojave and when I opened up a project I've been working for with a git_hub repository attached. I decided to start a new project with version control. It stated

Git was not detected on the system path.

To create projects from git repositories you should install Git and then restart RStudio.

Note that if Git is installed and not on the path, then you can specify it's location using Preference Dialog

I noticed that the current project which I have been using version control on no longer has the tab to push updates.

In project settings it states

Version Control System: {(NONE)}

and does not allow any options to change to git. Git is uploaded on my computer, I have restarted r, but I still cannot figure out how to reattach my repository to the project nor attach my new repository to a new project.

Any suggestions for somebody newly learning R

Upvotes: 1

Views: 2106

Answers (3)

Durrell Kapan
Durrell Kapan

Reputation: 21

Point to your local copy of 'git;. Use the terminal to find it:

which git

On my machine it was:

/usr/local/bin/git

Then under R-studio preferences, select the GIT/SVN panel and use the browse feature to locate and click on git at that location ... hit 'apply/ok' then restart R ... it worked in my case.

Cheers

Upvotes: 2

Oleksii Pasichnyi
Oleksii Pasichnyi

Reputation: 101

You need to reinstall the command line tools for Mac OS X:

xcode-select --install

Upvotes: 3

Kaden Killpack
Kaden Killpack

Reputation: 451

For anybody else who may deal with this in the future. I am still unable to get git to work directly in the rstudio GUI however using the terminal still works. If the terminal is time consuming I believe in the terminal you can input >git gui and it will open a third party window.

Upvotes: 1

Related Questions