GitHub: A Beginners Guide
1
Introduction
1.1
Why is this Important?
1.2
Prerequisites
1.3
Acknowledgements
2
What are Git and GitHub?
2.1
Git
2.2
GitHub
2.3
Git the language?
2.4
Git to GitHub GUIs
2.5
Getting Started
3
Setup GitHub Desktop
3.1
Step 1: Download
3.2
Step 2: Create New Repo
3.3
Step 3: Set up Desktop
3.4
Step 4: Copy files into your local Git repo
3.5
Step 5: Upload to GitHub
4
Setup Git in RStudio
4.1
Step 1: Download
4.2
Step 2: Create New Repo
4.3
Step 3: Configure RStudio
4.4
Step 4: Clone the Repository from RStudio
4.5
Step 5: Stage, commit and push
4.6
Extra: Link RStudio to existing local Git repo
5
GitHub Branch
5.1
Step 1: Create a branch
5.2
Step 2: Name your branch
5.3
Step 3: Make changes
5.4
Step 4: Push changes
5.5
Step 5: Compare & pull request
5.6
Step 6: Delete branch
5.7
Tips to keep you popular
6
Sharing GitHub Scripts
6.1
Contributing code with RStudio
6.2
Transferring ownership
6.2.1
Prerequisites for repository transfers
6.2.2
Step-by-Step
7
GitHub Best Practices
7.1
Use a unique repository for each project
7.2
Use branches to avoid heartache
7.3
Create a meaningful
.gitignore
file
7.4
Define the code owner
7.5
Don’t let your password leak into your code
7.6
Don’t commit a crime
8
GitHub Resources
8.1
RStudio Resources
8.2
GitHub Desktop Resources
Published with bookdown
GitHub: A Beginners Guide
GitHub: A Beginners Guide
Danielle Ethier and Josh Sayers, Birds Canada
Version 2: June 2022