Skip to content

Commit 67dcd04

Browse files
committed
draft 2 eod friday genf
1 parent 3a04263 commit 67dcd04

19 files changed

+1294
-256
lines changed

_site.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@ navbar:
1212
href: outline.html
1313
- text: "Hands-On"
1414
menu:
15-
- text: "Init / Clone / Pull & Push"
15+
- text: "Init Pull & Push"
1616
href: handson.html
17+
- text: "Clone"
18+
href: clone.html
1719
- text: "Branch / Merge / Revert"
1820
href: "handson_branch.html"
1921
- text: "Pull Requests / Remotes"

clone.Rmd

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
title: "Clone a GitHub Repository"
3+
output:
4+
html_document:
5+
self_contained: false
6+
---
7+
8+
**Using RStudio**, clone some repository. Cloning will pull down the whole repo to your local system. Start with some test repository, maybe this [introduction to R](https://github.com/libjohn/intro2r-2018fall)
9+
10+
### Bring the repo down locally via RStudio
11+
12+
1. Copy GitHub repo URL to clipboard by clicking on the green **Clone or Download** button
13+
14+
- The repo should be at a location like this. `https://github.com/libjohn/intro2r-2018fall`
15+
- This will copy the *git* URL to the clipboard <br><figure>![](images/copy_repo_github.png)
16+
<figcaption>Copy the repo URL</figcaption></figure><br>
17+
18+
1. Launch RStudio and create a *New Project...*
19+
20+
a. From the RStudio menubar: *File > New Project...* > Version Control > Git <br><figure>![](images/project_version_git.png)<figcaption>Paste the GitHub repo URL (from the step above) into the *Repository URL:* field in RStudio</figcaption></figure><br>
21+
a. Create Project
22+
23+

docs/README.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,10 @@
384384
</a>
385385
<ul class="dropdown-menu" role="menu">
386386
<li>
387-
<a href="handson.html">Init / Clone / Pull &amp; Push</a>
387+
<a href="handson.html">Init Pull &amp; Push</a>
388+
</li>
389+
<li>
390+
<a href="clone.html">Clone</a>
388391
</li>
389392
<li>
390393
<a href="handson_branch.html">Branch / Merge / Revert</a>

0 commit comments

Comments
 (0)