diff --git a/schedule/slides/00-version-control.qmd b/schedule/slides/00-version-control.qmd index 5ffae13..0ac71f0 100644 --- a/schedule/slides/00-version-control.qmd +++ b/schedule/slides/00-version-control.qmd @@ -64,6 +64,26 @@ Slack help from MDS [features](https://ubc-mds.github.io/resources_pages/slack/) # Git and GitHub +------ + +*But I already know how to use git/Github...* + +Are you sure? + +* Have you used git/Github in a professional team context? +* Do you follow a proper pull request workflow? +* Do you know what files to track and not to track? +* Can you get yourself unstuck from common problems? + +. . . + +
+ +*Yes. I really know how to use git/Github.* + +Then pull out your laptop and read my ["How To Be a Git Wizard"](https://geoffpleiss.com/git_wizard.pdf) slides. \ +I guarantee (with 99% confidence) that you will learn a new command. + ## Why version control? @@ -210,11 +230,15 @@ Definitely not Any file that [YOU]{.secondary} edit should be tracked \ Any file that's [computer generated]{.secondary} should PROBABLY NOT be tracked + +[However, in this course you will track rendered PDFs of your homeworks/labs. + This makes it easier for the graders.]{.small} ::: -. . . +## What should be tracked? + A file called `.gitignore` tells `git` files or types to never track ```{{bash}} @@ -234,10 +258,6 @@ A file called `.gitignore` tells `git` files or types to never track *.DS_Store ``` -## What should be tracked? - -
- Shortcut to track everything (use carefully): ```{{bash}} @@ -292,15 +312,6 @@ to the same branch. Then "re-request review". 1. See Chapter 6 if you have install problems. 1. See Chapter 9 for credential caching (avoid typing a password all the time) 1. See Chapter 13 if RStudio can't find `git` - -## If you know all this already... - -
- -:::center -Check out my ["How To Be a Git Wizard"](https://geoffpleiss.com/git_wizard.pdf) slides to take your git game to the next level. \ -I guarantee (with 99% confidence) that you will learn an amazing new command. -:::