I am teaching a class in which students use RStudio and Github. Everything went well for most of the semester but in the last couple of weeks, several students who use Macs updated their OS and now RStudio says it can't find git on the system path.
The git executable is installed on
/usr/bin/git, with an additional symlink to that executable from
echo $PATH shows /usr/local/bin:/usr/bin as the first two entries in the PATH. From a terminal (and also from the terminal window in RStudio),
which git returns
/usr/bin/git and I can successfully run git commands (
git commit, etc.).
I have manually set the path to the git executable in RStudio global options to
/usr/bin/git, but RStudio continues to insist that it can't find git on the system path, so my students can only use git by typing git commands into a terminal window (either the OS/X terminal or the terminal window in RStudio).
My students have tried downloading and installing the latest git executable from https://git-scm.com and the problem persists.
I am not a Mac person (I know Linux and Windows) so if anyone has had similar issues and has advice for how to help my students get git working again, I would be grateful.