![]() ![]() I have also set the git executable path in RStudio's global options as C:/Program Files/Git/bin/git.exe. However, I have placed C:\Program Files\Git\bin\ in the system path via environment variables. in creating a VCS project it returns "Git was not detected on the system path". Whilst git works perfectly well with SourceTree and in the command line, RStudio is not able to find it i.e. In an attempt to try and fix the issue, I uninstalled and reinstalled git, following the steps above. Also, when I look at the git viewer in RStudio, it is just blank/white, whereas it would usually allow me to stage files etc. When I try to commit/pull/push changes it just shows "RStudio, directory name is invalid" and does not allow me to perform any git commands. I can use git with SourceTree, so I don't think it's an issue with my git version. ![]() I have tried the solutions to previous similar questions (repo paths do not contain non-ASCII char). I'm afraid that I, unfortunately, am having issues with Git within RStudio, and was wondering if anyone had a bright idea for the solution? Initially, it was working with my repos, and then one day they started to show the error "RStudio, directory name is invalid". Thanks very much to those who put together this excellent resource. Perhaps this is worth noting in the book? A good spot would be under section 8.1 here, since related notes for Windows users are already there. Am able to set username and email in RStudio's shell.All git commands work in RStudio's shell now.Running which git in RStudio's shell returned the git.exe location.Running git config -global -list in Git Bash showed my same username and email.The top two entries are the source code and binary directories. A GUI will appear similar to what is shown below. Left all other options throughout the installation at their default settings. Run cmake-gui.exe, which should be in your Start menu under Program Files, there may also be a shortcut on your desktop, or if you built from source, it will be in the build directory. During installation, selected "Use Git from the Windows Command Prompt" (different from default).Re-installed git from here (did not uninstall).Name of the Rstudio git shell window was MSYS, not cmd.exe nor MINGW64, as you warned in the book here.Edit: This option is not in RStudio v1.1.383. I confirmed that the “Use Git Bash as shell for Git projects” box in Tools > Global Options > Git/SVN was ticked. ![]()
0 Comments
Leave a Reply. |