Skip to content

Commit 33bdfaa

Browse files
committed
split creating a repo lectures into two pieces - one for creating repo from scratch and another for forking a repo
1 parent 8c35ccb commit 33bdfaa

9 files changed

Lines changed: 361 additions & 157 deletions

File tree

01_DataScientistToolbox/02_05_github/index.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ mode : selfcontained # {standalone, draft}
3636

3737
* Go to the GitHub homepage at [https://github.com/](https://github.com/)
3838
* Enter a username, email, and password and click "Sign up for GitHub"
39-
* **NOTE: You should use the same email address that you used when setting up Git in the previous lecture**
39+
* **IMPORTANT: Use the same email address that you used when setting up Git in the previous lecture!!!**
4040

4141
<img class=center src=../../assets/img/IntroToGitHub/GitHubSignup1.png height='350'/>
4242

01_DataScientistToolbox/02_05_github/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ <h2>Set Up a GitHub Account</h2>
8585
<ul>
8686
<li>Go to the GitHub homepage at <a href="https://github.com/">https://github.com/</a></li>
8787
<li>Enter a username, email, and password and click &quot;Sign up for GitHub&quot;</li>
88-
<li><strong>NOTE: You should use the same email address that you used when setting up Git in the previous lecture</strong></li>
88+
<li><strong>IMPORTANT: Use the same email address that you used when setting up Git in the previous lecture!!!</strong></li>
8989
</ul>
9090

9191
<p><img class=center src=../../assets/img/IntroToGitHub/GitHubSignup1.png height='350'/></p>

01_DataScientistToolbox/02_05_github/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ mode : selfcontained # {standalone, draft}
3636

3737
* Go to the GitHub homepage at [https://github.com/](https://github.com/)
3838
* Enter a username, email, and password and click "Sign up for GitHub"
39-
* **NOTE: You should use the same email address that you used when setting up Git in the previous lecture**
39+
* **IMPORTANT: Use the same email address that you used when setting up Git in the previous lecture!!!**
4040

4141
<img class=center src=../../assets/img/IntroToGitHub/GitHubSignup1.png height='350'/>
4242

01_DataScientistToolbox/02_06_creatingRepos/index.Rmd renamed to 01_DataScientistToolbox/02_06_01_createNewRepo/index.Rmd

Lines changed: 8 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title : Creating a GitHub Repository
2+
title : Creating a New GitHub Repository
33
subtitle :
44
author : Jeffrey Leek, Assistant Professor of Biostatistics
55
job : Johns Hopkins Bloomberg School of Public Health
@@ -31,14 +31,14 @@ mode : selfcontained # {standalone, draft}
3131
* Two methods of creating a GitHub repository:
3232
1. Start a repository from scratch
3333
2. "Fork" another user's repository
34-
* We'll start with the first method
34+
* This lecture will walk you through the first method
3535
* _NOTE: A repository is often referred to as a "repo"_
3636

3737
---
3838

3939
## Start a Repository From Scratch
4040

41-
* Either go to your profile page (https://github.com/yourUserNameHere/) and click on "Create a new repo" in the upper righthand corner of the page
41+
* Either go to your profile page (https://github.com/your-user-name-goes-here/) and click on "Create a new repo" in the upper righthand corner of the page
4242

4343
__...OR...__
4444

@@ -68,15 +68,14 @@ __...OR...__
6868
## Creating a Local Copy
6969

7070
* Now you need to create a copy of this repo on your computer so that you can make changes to it
71-
72-
* Open Git Bash
71+
* Open either Git Bash (for Windows users) or Terminal (for Mac users)
7372
* Create a directory on your computer where you will store your copy of the repo:
7473

7574
```
7675
$ mkdir ~/test-repo
7776
```
78-
79-
* Navigate to this new directory using the following command:
77+
* Note: The tilda (`~`) symbol refers to your "home" directory, so this will create a directory called `test-repo` in your home directory
78+
* Navigate to this new directory using the following command (`cd` stands for "change directory"):
8079

8180
```
8281
$ cd ~/test-repo
@@ -95,7 +94,7 @@ $ git init
9594
* Point your local repository at the remote repository you just created on the GitHub server
9695

9796
```
98-
$ git remote add origin https://github.com/yourUserNameHere/test-repo.git
97+
$ git remote add origin https://github.com/your-user-name-goes-here/test-repo.git
9998
```
10099

101100
---
@@ -106,38 +105,4 @@ $ git remote add origin https://github.com/yourUserNameHere/test-repo.git
106105

107106
<img class=center src=../../assets/img/CreateRepo/CreateRepo3.png height='350'/>
108107

109-
---
110-
111-
## Fork a Another User's Repository
112-
113-
* The second method of creating a respository is to make a copy of someone else's
114-
* This process is called "forking" and is an important aspect of open-source software development
115-
* Begin by navigating to the desired repository on the GitHub website and click the "Fork" button shown below
116-
117-
<img class=center src=../../assets/img/CreateRepo/Bootcamp-Fork.png width='750'/>
118-
119-
[https://help.github.com/articles/fork-a-repo](https://help.github.com/articles/fork-a-repo)
120-
121-
---
122-
123-
## Clone the Repo
124-
125-
* You now have a copy of the desired respository on your GitHub account
126-
* Need to make a local copy of the repo on your computer
127-
* This process is called "cloning" and can be done using the following command:
128-
129-
```
130-
$ git clone https://github.com/yourUserNameHere/repoNameHere.git
131-
```
132-
133-
* _NOTE: This will clone the repository into your current directory._
134-
135-
---
136-
137-
## What Else?
138-
139-
* If you make changes to your local copy of the repo, you'll probably want to push your changes to GitHub at some point
140-
* You also may be interested in staying current with any changes made to the original repository from which you forked your copy
141-
* We will cover some more Git/GitHub basics in coming lectures, but in the meantime, here are some great resources:
142-
* [https://help.github.com/articles/fork-a-repo](https://help.github.com/articles/fork-a-repo)
143-
* [http://git-scm.com/book/en/Git-Basics-Getting-a-Git-Repository](http://git-scm.com/book/en/Git-Basics-Getting-a-Git-Repository)
108+
* Note: Actual appearance may differ slightly depending on your operating system and default settings.

01_DataScientistToolbox/02_06_creatingRepos/index.html renamed to 01_DataScientistToolbox/02_06_01_createNewRepo/index.html

Lines changed: 12 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<!DOCTYPE html>
22
<html>
33
<head>
4-
<title>Creating a GitHub Repository</title>
4+
<title>Creating a New GitHub Repository</title>
55
<meta charset="utf-8">
6-
<meta name="description" content="Creating a GitHub Repository">
6+
<meta name="description" content="Creating a New GitHub Repository">
77
<meta name="author" content="Jeffrey Leek, Assistant Professor of Biostatistics">
88
<meta name="generator" content="slidify" />
99
<meta name="apple-mobile-web-app-capable" content="yes">
@@ -41,7 +41,7 @@
4141
<img src="../../assets/img/bloomberg_shield.png">
4242
</aside>
4343
<hgroup class="auto-fadein">
44-
<h1>Creating a GitHub Repository</h1>
44+
<h1>Creating a New GitHub Repository</h1>
4545
<h2></h2>
4646
<p>Jeffrey Leek, Assistant Professor of Biostatistics<br/>Johns Hopkins Bloomberg School of Public Health</p>
4747
</hgroup>
@@ -81,7 +81,7 @@ <h2>Creating a GitHub Repository</h2>
8181
<li>Start a repository from scratch</li>
8282
<li>&quot;Fork&quot; another user&#39;s repository</li>
8383
</ol></li>
84-
<li>We&#39;ll start with the first method</li>
84+
<li>This lecture will walk you through the first method</li>
8585
<li><em>NOTE: A repository is often referred to as a &quot;repo&quot;</em></li>
8686
</ul>
8787

@@ -95,7 +95,7 @@ <h2>Start a Repository From Scratch</h2>
9595
</hgroup>
9696
<article>
9797
<ul>
98-
<li>Either go to your profile page (<a href="https://github.com/yourUserNameHere/">https://github.com/yourUserNameHere/</a>) and click on &quot;Create a new repo&quot; in the upper righthand corner of the page</li>
98+
<li>Either go to your profile page (<a href="https://github.com/your-user-name-goes-here/">https://github.com/your-user-name-goes-here/</a>) and click on &quot;Create a new repo&quot; in the upper righthand corner of the page</li>
9999
</ul>
100100

101101
<p><strong>...OR...</strong></p>
@@ -147,16 +147,17 @@ <h2>Creating a Local Copy</h2>
147147
</hgroup>
148148
<article>
149149
<ul>
150-
<li><p>Now you need to create a copy of this repo on your computer so that you can make changes to it</p></li>
151-
<li><p>Open Git Bash</p></li>
152-
<li><p>Create a directory on your computer where you will store your copy of the repo:</p></li>
150+
<li>Now you need to create a copy of this repo on your computer so that you can make changes to it</li>
151+
<li>Open either Git Bash (for Windows users) or Terminal (for Mac users)</li>
152+
<li>Create a directory on your computer where you will store your copy of the repo:</li>
153153
</ul>
154154

155155
<pre><code>$ mkdir ~/test-repo
156156
</code></pre>
157157

158158
<ul>
159-
<li>Navigate to this new directory using the following command:</li>
159+
<li>Note: The tilda (<code>~</code>) symbol refers to your &quot;home&quot; directory, so this will create a directory called <code>test-repo</code> in your home directory</li>
160+
<li>Navigate to this new directory using the following command (<code>cd</code> stands for &quot;change directory&quot;):</li>
160161
</ul>
161162

162163
<pre><code>$ cd ~/test-repo
@@ -182,7 +183,7 @@ <h2>Creating a Local Copy</h2>
182183
<li>Point your local repository at the remote repository you just created on the GitHub server</li>
183184
</ul>
184185

185-
<pre><code>$ git remote add origin https://github.com/yourUserNameHere/test-repo.git
186+
<pre><code>$ git remote add origin https://github.com/your-user-name-goes-here/test-repo.git
186187
</code></pre>
187188

188189
</article>
@@ -200,65 +201,8 @@ <h2>Creating a Local Copy</h2>
200201

201202
<p><img class=center src=../../assets/img/CreateRepo/CreateRepo3.png height='350'/></p>
202203

203-
</article>
204-
<!-- Presenter Notes -->
205-
</slide>
206-
207-
<slide class="" id="slide-9" style="background:;">
208-
<hgroup>
209-
<h2>Fork a Another User&#39;s Repository</h2>
210-
</hgroup>
211-
<article>
212-
<ul>
213-
<li>The second method of creating a respository is to make a copy of someone else&#39;s</li>
214-
<li>This process is called &quot;forking&quot; and is an important aspect of open-source software development</li>
215-
<li>Begin by navigating to the desired repository on the GitHub website and click the &quot;Fork&quot; button shown below</li>
216-
</ul>
217-
218-
<p><img class=center src=../../assets/img/CreateRepo/Bootcamp-Fork.png width='750'/></p>
219-
220-
<p><a href="https://help.github.com/articles/fork-a-repo">https://help.github.com/articles/fork-a-repo</a></p>
221-
222-
</article>
223-
<!-- Presenter Notes -->
224-
</slide>
225-
226-
<slide class="" id="slide-10" style="background:;">
227-
<hgroup>
228-
<h2>Clone the Repo</h2>
229-
</hgroup>
230-
<article>
231-
<ul>
232-
<li>You now have a copy of the desired respository on your GitHub account</li>
233-
<li>Need to make a local copy of the repo on your computer</li>
234-
<li>This process is called &quot;cloning&quot; and can be done using the following command:</li>
235-
</ul>
236-
237-
<pre><code>$ git clone https://github.com/yourUserNameHere/repoNameHere.git
238-
</code></pre>
239-
240-
<ul>
241-
<li><em>NOTE: This will clone the repository into your current directory.</em></li>
242-
</ul>
243-
244-
</article>
245-
<!-- Presenter Notes -->
246-
</slide>
247-
248-
<slide class="" id="slide-11" style="background:;">
249-
<hgroup>
250-
<h2>What Else?</h2>
251-
</hgroup>
252-
<article>
253-
<ul>
254-
<li>If you make changes to your local copy of the repo, you&#39;ll probably want to push your changes to GitHub at some point</li>
255-
<li>You also may be interested in staying current with any changes made to the original repository from which you forked your copy</li>
256-
<li>We will cover some more Git/GitHub basics in coming lectures, but in the meantime, here are some great resources:
257-
258204
<ul>
259-
<li><a href="https://help.github.com/articles/fork-a-repo">https://help.github.com/articles/fork-a-repo</a></li>
260-
<li><a href="http://git-scm.com/book/en/Git-Basics-Getting-a-Git-Repository">http://git-scm.com/book/en/Git-Basics-Getting-a-Git-Repository</a></li>
261-
</ul></li>
205+
<li>Note: Actual appearance may differ slightly depending on your operating system and default settings.</li>
262206
</ul>
263207

264208
</article>

01_DataScientistToolbox/02_06_creatingRepos/index.md renamed to 01_DataScientistToolbox/02_06_01_createNewRepo/index.md

Lines changed: 8 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title : Creating a GitHub Repository
2+
title : Creating a New GitHub Repository
33
subtitle :
44
author : Jeffrey Leek, Assistant Professor of Biostatistics
55
job : Johns Hopkins Bloomberg School of Public Health
@@ -31,14 +31,14 @@ mode : selfcontained # {standalone, draft}
3131
* Two methods of creating a GitHub repository:
3232
1. Start a repository from scratch
3333
2. "Fork" another user's repository
34-
* We'll start with the first method
34+
* This lecture will walk you through the first method
3535
* _NOTE: A repository is often referred to as a "repo"_
3636

3737
---
3838

3939
## Start a Repository From Scratch
4040

41-
* Either go to your profile page (https://github.com/yourUserNameHere/) and click on "Create a new repo" in the upper righthand corner of the page
41+
* Either go to your profile page (https://github.com/your-user-name-goes-here/) and click on "Create a new repo" in the upper righthand corner of the page
4242

4343
__...OR...__
4444

@@ -68,15 +68,14 @@ __...OR...__
6868
## Creating a Local Copy
6969

7070
* Now you need to create a copy of this repo on your computer so that you can make changes to it
71-
72-
* Open Git Bash
71+
* Open either Git Bash (for Windows users) or Terminal (for Mac users)
7372
* Create a directory on your computer where you will store your copy of the repo:
7473

7574
```
7675
$ mkdir ~/test-repo
7776
```
78-
79-
* Navigate to this new directory using the following command:
77+
* Note: The tilda (`~`) symbol refers to your "home" directory, so this will create a directory called `test-repo` in your home directory
78+
* Navigate to this new directory using the following command (`cd` stands for "change directory"):
8079

8180
```
8281
$ cd ~/test-repo
@@ -95,7 +94,7 @@ $ git init
9594
* Point your local repository at the remote repository you just created on the GitHub server
9695

9796
```
98-
$ git remote add origin https://github.com/yourUserNameHere/test-repo.git
97+
$ git remote add origin https://github.com/your-user-name-goes-here/test-repo.git
9998
```
10099

101100
---
@@ -106,38 +105,4 @@ $ git remote add origin https://github.com/yourUserNameHere/test-repo.git
106105

107106
<img class=center src=../../assets/img/CreateRepo/CreateRepo3.png height='350'/>
108107

109-
---
110-
111-
## Fork a Another User's Repository
112-
113-
* The second method of creating a respository is to make a copy of someone else's
114-
* This process is called "forking" and is an important aspect of open-source software development
115-
* Begin by navigating to the desired repository on the GitHub website and click the "Fork" button shown below
116-
117-
<img class=center src=../../assets/img/CreateRepo/Bootcamp-Fork.png width='750'/>
118-
119-
[https://help.github.com/articles/fork-a-repo](https://help.github.com/articles/fork-a-repo)
120-
121-
---
122-
123-
## Clone the Repo
124-
125-
* You now have a copy of the desired respository on your GitHub account
126-
* Need to make a local copy of the repo on your computer
127-
* This process is called "cloning" and can be done using the following command:
128-
129-
```
130-
$ git clone https://github.com/yourUserNameHere/repoNameHere.git
131-
```
132-
133-
* _NOTE: This will clone the repository into your current directory._
134-
135-
---
136-
137-
## What Else?
138-
139-
* If you make changes to your local copy of the repo, you'll probably want to push your changes to GitHub at some point
140-
* You also may be interested in staying current with any changes made to the original repository from which you forked your copy
141-
* We will cover some more Git/GitHub basics in coming lectures, but in the meantime, here are some great resources:
142-
* [https://help.github.com/articles/fork-a-repo](https://help.github.com/articles/fork-a-repo)
143-
* [http://git-scm.com/book/en/Git-Basics-Getting-a-Git-Repository](http://git-scm.com/book/en/Git-Basics-Getting-a-Git-Repository)
108+
* Note: Actual appearance may differ slightly depending on your operating system and default settings.

0 commit comments

Comments
 (0)