Skip to content

Commit

Permalink
updated initial git commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanhubert committed Oct 10, 2024
1 parent 1d763b1 commit da43e99
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 9 deletions.
21 changes: 16 additions & 5 deletions week02/03-exercises-tabular-data-solution.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,25 @@ cd seminar02

Now, save this Rmd file, close it, and move it into your local copy of the
GitHub repo you just created and cloned. After you have done this, reopen this
file in RStudio.
file in RStudio. Also store copies of the two `csv` datasets in your repo folder.

Next, stage, commit and push your changes to your repo, using "added seminar
file" as your commit message.
Next, stage all the files you just added to your local repo. Note: the dot tells
git to stage all the files in the folder, not just a single file. The dot can be
dangerous because you may unintentionally stage files you do not want to have on
GitHub. Before staging all the files in the repo folder with the dot, check
what's in the folder by running the command `ls` in the terminal and check you
are only staging files you want to save to GitHub. Once you're satisfied stage
as follows.

```{bash, eval = FALSE}
git add 03-exercises-tabular-data.Rmd
git commit -m "added seminar file"
git add .
```

Commit and push your changes to your repo, using "added seminar files" as your
commit message.

```{bash, eval = FALSE}
git commit -m "added seminar files"
git push
```

Expand Down
19 changes: 15 additions & 4 deletions week02/03-exercises-tabular-data.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,24 @@ cd _________

Now, save this Rmd file, close it, and move it into your local copy of the
GitHub repo you just created and cloned. After you have done this, reopen this
file in RStudio.
file in RStudio. Also store copies of the two `csv` datasets in your repo folder.

Next, stage, commit and push your changes to your repo, using "added seminar
file" as your commit message.
Next, stage all the files you just added to your local repo. Note: the dot tells
git to stage all the files in the folder, not just a single file. The dot can be
dangerous because you may unintentionally stage files you do not want to have on
GitHub. Before staging all the files in the repo folder with the dot, check
what's in the folder by running the command `ls` in the terminal and check you
are only staging files you want to save to GitHub. Once you're satisfied stage
as follows.

```{bash, eval = FALSE}
git _________ .
```

Commit and push your changes to your repo, using "added seminar files" as your
commit message.

```{bash, eval = FALSE}
git _________ 03-exercises-tabular-data.Rmd
git _________ -m "_________"
git _________
```
Expand Down

0 comments on commit da43e99

Please sign in to comment.