Skip to content

Commit fac4f0c

Browse files
committed
fix text after html review
1 parent 9d6d77a commit fac4f0c

File tree

1 file changed

+15
-10
lines changed

1 file changed

+15
-10
lines changed

episodes/07-github.md

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ exercises: 0
2323

2424
When using `usethis::git_sitrep()`, check if there is no `✖ ...` line in the output with an error message.
2525

26-
If you an error message like `✖ Token lacks ...` or `✖ Can't retrieve registered email`, [follow the steps in episode 2 to solve it](02-setup#set-up-your-github-token).
26+
If you an error message like `✖ Token lacks ...` or `✖ Can't retrieve registered email`, [follow the steps in episode 2 to solve it](02-setup.md#set-up-your-github-token).
2727

2828
::::::::::::::::::::::::
2929

@@ -110,7 +110,9 @@ minimum level for GitHub.
110110

111111
::::::::::::::::::::::::::::::::::::::::::::::::::
112112

113+
<!--
113114
![](fig/github-change-repo-string.png){alt='Changing the Repository URL on GitHub'}
115+
-->
114116

115117
Copy that URL from the browser, go into the local `cases` repository, and run
116118
this command:
@@ -149,7 +151,7 @@ You can also check this steps with `{usethis}`:
149151
usethis::git_sitrep()
150152
```
151153

152-
The output in the last `── GitHub project` section should look like this:
154+
The output in the last section called `── GitHub project` should look like this:
153155

154156
```output
155157
── GitHub project
@@ -330,7 +332,7 @@ Hi Vlad! You've successfully authenticated, but GitHub does not provide shell ac
330332
Good! This output confirms that the SSH key works as intended. We are now ready to push our work to the remote repository.
331333
-->
332334

333-
## 4\. Push local changes to a remote
335+
## 3\. Push local changes to a remote
334336

335337
Now that authentication is setup, we can return to the remote. This command will push the changes from
336338
our local repository to the repository on GitHub:
@@ -423,28 +425,30 @@ simply use `git push -u origin main` once the remote has been set up.
423425
::::::::::::::::::::::::::::::::::::::::::::::::::
424426

425427

426-
## In one step
428+
## All in one step
427429

428-
You can use `{usethis}` to (i) create a remote repository, (ii) connect the local and the remote with one function, and (iii) push your local changes to a remote.
430+
You can use `usethis::use_github()` to _create_ a remote repository, _connect_ the local and the remote, and _push_ your local changes to a remote.
429431

430432
::::::::::::::::::::::::::::::::: challenge
431433

432-
Along with tracking information about cases (the project we have already created),
434+
For the Outbreak response, along with tracking information about cases (the project we have already created),
433435
Dracula would also like to track information about interventions.
434436

435437
Create new local repository for `interventions` and connect it with a remote repository:
436438

437-
- First, if you are in Rstudio, close you Project from `File` > `Close Project`.
439+
- First, if you are in Rstudio, close your R Project from `File` > `Close Project`.
438440
- __In the Console__, run:
439441

440442
```r
441443
# create a new R project in a new directory
442444
usethis::create_project(path = "interventions")
443445

444-
# make the interventions directory a Git repository
446+
# make the interventions directory a Git local repository
445447
usethis::use_git()
446448

447-
# connect local repository with remote repository
449+
# 1. create a GitHub remote repository
450+
# 2. connect local with remote
451+
# 3. push content to remote
448452
usethis::use_github()
449453
```
450454

@@ -632,7 +636,8 @@ create mode 100644 README.md
632636
:::::::::::::::::::::::::::::::::::::::: keypoints
633637

634638
- A local Git repository can be connected to one or more remote repositories.
635-
- Use the SSH protocol to connect to remote repositories.
639+
<!--- Use the SSH protocol to connect to remote repositories.-->
640+
- Use the HTTPS protocol to connect to remote repositories.
636641
- `git push` copies changes from a local repository to a remote repository.
637642
- `git pull` copies changes from a remote repository to a local repository.
638643

0 commit comments

Comments
 (0)