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
Pull a GitHub Repository to an RStudio Project
This lesson is locked
This lesson is called Pull a GitHub Repository to an RStudio Project, part of the Using Git and GitHub with R course. This lesson is called Pull a GitHub Repository to an RStudio Project, 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 new repository on GitHub called
github-first
Create a new project in RStudio by cloning the
github-first
GitHub repository you just created
You need to be signed-in to comment on this post. Login.
Matt Kropp
October 27, 2022
Is there a best practice to pull from a public code to start a project? For example, there is a project I want to start but someone has done something similar and it might be easier to start from their code.
David Keyes
October 28, 2022
I'd say it depends how much of the project you plan to use. If you just want a bit of the code, I'd just copy it. If you want to use the whole setup etc, then I'd do what's called forking or cloning it. You can learn about those at https://happygitwithr.com/fork-and-clone.html and https://happygitwithr.com/clone.html
Josh Gutwill
October 31, 2022
I keep encountering a bug in your VSA course software, where I click "Mark Complete," it loads the next chapter of the course, but the video doesn't load. I see nothing where the video should be. It started when I first loaded the "Push a Github Repo" chapter. I cleared my cache, and that didn't fix it. Then I logged out and logged in again, and that fixed it. I was able to watch the Push video. But now that I've moved onto the "Pull" chapter, the video again does not load. I'll post this issue and then log out and log back in to see if that fixes it.
Charlie Hadley
November 1, 2022
Thanks for the report - I'm glad that it's working after logging out!
Josh Gutwill
October 31, 2022
Logging out and and back in did seem to fix it. We'll see what happens when I mark complete and go to the next chapter.