You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Improve optional fork-and-PR challenge:
1. Fix formatting of heading and introductory paragraph.
2. Explain motivation for this workflow.
3. Replace broken link with illustrated step-by-step instructions.
## Challenge: Contributing to a page owned by someone else (slightly easier way)
80
80
@@ -85,19 +85,21 @@ Pair up in groups of two (or more if needed) and do the exercises below together
85
85
86
86
2. Click on "Fork" in the upper right part of the screen to create a copy of the repository on your account. Once you have a fork > of your partner's repository, you can edit the files in your own fork directly.
The `clone` command creates a directory on your computer containing
186
+
the current state of the repository and its full version history.
136
187
137
-
::::::::::::::::::::::::::::::::::::::: challenge
188
+
5. Enter the directory that Git just created:
138
189
139
-
Try following the rest of the steps in this guide under ["Time to Submit Your First PR"](https://www.thinkful.com/learn/github-pull-request-tutorial/Writing-a-Good-Commit-Message#Time-to-Submit-Your-First-PR).
190
+
```bash
191
+
$ cd hello-world-1
192
+
```
193
+
194
+
6. Create a new branch to hold the changes you're about to make:
195
+
196
+
```bash
197
+
$ git switch -c my-patch-1
198
+
```
199
+
200
+
Here, `switch` tells Git to change the current branch,
201
+
the `-c` tells Git you want to create a new branch,
202
+
and `my-patch-1` is what it will be called.
203
+
204
+
7. Open up the `index.md` and start editing it.
205
+
You could try some more examples from [Mastering Markdown][].
206
+
207
+
8. After saving the file, add it, commit it with a short message describing the change:
208
+
209
+
```bash
210
+
$ git add index.md
211
+
$ git commit -m "Add more Markdown examples"
212
+
```
213
+
214
+
9. Push your new branch up to your fork on GitHub:
215
+
216
+
```bash
217
+
$ git push origin my-patch-1
218
+
```
219
+
220
+
10. Git will show you a message from GitHub containing a link
221
+
for starting a new pull request:
222
+
223
+
```output
224
+
remote:
225
+
remote: Create a pull request for 'my-patch-1' on GitHub by visiting:
0 commit comments