Get access to all lessons in this course.
-
Introduction to Git and GitHub
- What is Git? What is GitHub?
- Why Should You Learn to Use Git and GitHub?
- Update Everything
-
Git
- Install Git
- Configure Git
- Create a Local Git Repository
- Commits
- Commit History
-
GitHub
- GitHub Repositories
- Connect RStudio and GitHub
- Push an RStudio Project to a GitHub Repository
- Pull a GitHub Repository to an RStudio Project
- Keep RStudio and GitHub in Sync
-
Collaborating with Git and GitHub
- Why Use GitHub vs Dropbox, Google Drive, Box, etc?
- Dealing with Common Problems: Can't Pull Code from GitHub
- Dealing with Common Problems: Merge Conflicts
- Dealing with Common Problems: Can't Push Code to GitHub
- Let's Keep Bad Things from Happening in the First Place
-
Branches
- What are Branches and Why Should We Use Them?
- Branch Names
- How to Create Branches
- Using Pull Requests to Merge a Branch Into Main
-
Project Management with GitHub
- GitHub Issues
- How to Organize Issues
-
Wrapping Up
- Other Cool Stuff You Can Do with GitHub
Using Git and GitHub with R
Connect RStudio and GitHub
This lesson is locked
This lesson is called Connect RStudio and GitHub, part of the Using Git and GitHub with R course. This lesson is called Connect RStudio and GitHub, part of the Using Git and GitHub with R course.
Transcript
Click on the transcript to go to that point in the video. Please note that transcripts are auto generated and may contain minor inaccuracies.
Your Turn
Create a GitHub personal access token (PAT) using the
create_github_token()
function from theusethis
packageRegister your PAT using the
gitcreds_set()
function from thegitcreds
package
You need to be signed-in to comment on this post. Login.
Juan Clavijo
October 21, 2021
If I set the token to expire in 7 days, will I need to do this process again in 7 days?
David Keyes
October 21, 2021
Yes, that's right. For my own PAT, I set it never to expire so I don't have reenter it.
Michael Bedan
March 13, 2023
Do I use the same PAT on multiple computers? I have two laptops I use regularly when I am using R and I want to access the same projects.
David Keyes
March 14, 2023
You could use the same PAT on two computers. You could also just create a new PAT for each computer. As long as you have a PAT saved on each computer that allows it to authenticate with GitHub, you should be fine.