@@ -37,9 +37,29 @@ our computer, we choose the option "Existing Directory":
37
37
> option on this menu. That is what you would click on if you wanted to
38
38
> create a project on your computer by cloning a repository from GitHub.
39
39
> 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
43
63
> to accept the XCode license if you are using macOS.
44
64
{: .callout}
45
65
0 commit comments