diff --git a/week02/03-exercises-tabular-data-solution.Rmd b/week02/03-exercises-tabular-data-solution.Rmd index 7286f69..933f5cd 100755 --- a/week02/03-exercises-tabular-data-solution.Rmd +++ b/week02/03-exercises-tabular-data-solution.Rmd @@ -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 ``` diff --git a/week02/03-exercises-tabular-data.Rmd b/week02/03-exercises-tabular-data.Rmd index b0cacf7..fcfc799 100755 --- a/week02/03-exercises-tabular-data.Rmd +++ b/week02/03-exercises-tabular-data.Rmd @@ -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 _________ ```