Skip to content

Commit bc5979d

Browse files
authored
Merge pull request #531 from richmccue/gh-pages
Issue #507 - Episode 14 - Added guidance for RStudio users when Git.exe path not pre-filled
2 parents 73ab11a + 543dd82 commit bc5979d

File tree

1 file changed

+23
-3
lines changed

1 file changed

+23
-3
lines changed

_episodes/14-supplemental-rstudio.md

+23-3
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,29 @@ our computer, we choose the option "Existing Directory":
3737
> option on this menu. That is what you would click on if you wanted to
3838
> create a project on your computer by cloning a repository from GitHub.
3939
> If that option is not present, it probably means that RStudio doesn't know
40-
> where your Git executable is. See
41-
> [this page](https://stat545-ubc.github.io/git03_rstudio-meet-git.html)
42-
> for some debugging advice. Even if you have Git installed, you may need
40+
> where your Git executable is, and you won't be able to progress further
41+
> in this lesson until you tell RStudio where it is.
42+
> ### Find your Git Executiable
43+
> First let's make sure that Git is installed on your computer.
44+
> Open your shell on Mac or Linux, or on Windows open the command prompt
45+
> and then type:
46+
> - `which git` (Mac, Linux)
47+
> - `where git` (Windows)
48+
>
49+
> If there is no version of Git on your computer, please either install [Git](https://git-scm.com/downloads/)
50+
> or [GitHub](https://desktop.github.com/) now. Next open your shell or command prompt
51+
> and type `which git` (Mac, Linux), or `where git` (Windows).
52+
> Copy the path to the git executable.
53+
>
54+
> e.g. On one Windows computer which had GitHub Desktop installed on it, the path was:
55+
> `C:/Users/UserName/AppData/Local/GitHubDesktop/app-1.1.1/resources/app/git/cmd/git.exe`
56+
>
57+
> NOTE: The path on your computer will be somewhat different.
58+
> ### Tell RStudio where to find GitHub
59+
> In RStudio, go to the `Tools` menu > `Global Options` > `Git/SVN` and then
60+
> browse to the git executable you found in the command prompt or shell. Now restart
61+
> RStudio.
62+
> Note: Even if you have Git installed, you may need
4363
> to accept the XCode license if you are using macOS.
4464
{: .callout}
4565

0 commit comments

Comments
 (0)