Repository navigation
Expand file tree
/
Copy pathindex.Rmd
More file actions
62 lines (42 loc) · 1.4 KB
/
Copy pathindex.Rmd
File metadata and controls
62 lines (42 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
---
title: "Git & Github Sessions"
description: |
2026-27 Mini sessions on Branching, Pull Requests & Merges, and Undoing things
site: distill::distill_website
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = FALSE)
library(emo)
```
```{r share-again, echo=FALSE}
xaringanExtra::use_share_again()
```
## Agenda
### Session #1 (Nov 10, 2026): Branching
- Why branch?
- How to branch and know which branch you’re on by exploring different tools (Github Desktop, RStudio, Git Bash) to see what options you have
```{r embed-xaringan-branch, echo=FALSE}
xaringanExtra::embed_xaringan(url = "slides/branching.html", ratio = "16:9")
```
<aside>
Shortcut Keys
- `f`: full-screen
- `Esc`: exit full-screen
- `o`: tile view
- `r ji('left_arrow')` `r ji('right_arrow')`: advance slide
</aside>
### Session #2 (TBD): Pull Requests & Merges
- Why and how to create a pull request (PR)
- How to merge branches
### Session #3 (TBD): Undoing
- How to undo at each stage of the process:
1. Unstaged
2. Staged
3. Committed but not yet pushed to Github
4. Committed and already pushed Github
- Restore a single-file from an old commit (but not the whole repo!)
## Pre-work
1. Create a Github account
2. Download Github Desktop, RStudio, R, git (Git Bash comes with your git install)
3. Clone the repository [`git-together`](https://github.com/psrc/git-together){target="_blank"}
4. Sign into your Github account