Git and R combo
RSE Induction: R and Git combo
1
Why Git? Why GitHub?
1.1
Why Git?
1.2
Why GitHub?
1.3
Is it going to hurt?
1.4
What is the payoff?
1.5
Who can do what?
1.6
Special features of GitHub
1.7
What’s special about using R with Git and GitHub?
I Installation
2
Installation
2.1
GitHub account
2.2
Username advice
2.3
R and Rstudio
2.4
Git
2.4.1
Git already installed?
2.4.2
Windows
2.4.3
Mac OS
2.4.4
Linux
3
Introduction to Git
3.1
More about
git config
3.2
Shell in the latest version of Rstudio
II Connect Git, GitHub, RStudio
4
Connect to GitHub
4.1
Make a repo on GitHub
4.2
Clone the repo to your local computer
4.3
Make a local change, commit, and push
4.4
Confirm the local change propagated to the GitHub remote
4.5
Am I really going to type GitHub username and password on each push?
4.6
Clean up
5
Cache credentials for HTTPS
5.1
Get a test repository
5.2
Verify that your Git is new enough to have a credential helper
5.3
Turn on the credential helper
5.3.1
Trigger a username / password challenge
6
Set up keys for SSH
6.1
SSH keys
6.2
Check for existing keys
6.3
Set up from RStudio
6.4
Set up from the terminal
6.4.1
Create SSH key pair
6.4.2
Add key to ssh-agent
6.4.3
Provide public key to GitHub
7
Connect RStudio to Git and GitHub
7.1
Prerequisites
7.2
Make a new repo on GitHub
7.3
Clone the new GitHub repository to your computer via RStudio
7.4
Make local changes, save, commit
7.5
Push your local changes online to GitHub
7.6
Confirm the local change propagated to the GitHub remote
7.7
Were you challenged for GitHub username and password?
7.8
Clean up
8
Detect Git from RStudio
8.1
Do you have a problem?
8.2
Find Git yourself
8.3
Tell RStudio where to find Git
III Early GitHub Usage
9
New project, GitHub first
9.1
Make a repo on GitHub
9.2
New RStudio Project via git clone
9.3
Make local changes, save, commit
9.4
Push your local changes to GitHub
9.5
Confirm the local change propagated to the GitHub remote
9.6
Make a change on GitHub
9.7
Pull from GitHub
9.8
The end
10
Existing project, GitHub first
10.1
Make a repo on GitHub
10.2
New RStudio Project via git clone
10.3
Bring your existing project over
10.4
Stage and commit
10.5
Push your local changes to GitHub
10.6
Confirm the local change propagated to the GitHub remote
10.7
The end
11
Existing project, GitHub last
11.1
Make or verify an RStudio Project
11.2
Make or verify a Git repo
11.3
Stage and commit
11.4
Make a repo on GitHub
11.5
Connect to GitHub
11.6
Confirm the local change propagated to the GitHub remote
11.7
The end
Published with bookdown
R and Git combo
R and Git combo
Tania Allard
2018-01-03
RSE Induction: R and Git combo
Repo that makes this site:
https://github.com/trallard/R_Git_combo