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
Configure Git
This lesson is locked
This lesson is called Configure Git, part of the Using Git and GitHub with R course. This lesson is called Configure Git, 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
Configure Git by adding a user name and email to your profile using the use_git_config()
function from the usethis
package.
If you have trouble getting git configured to work on your local computer, we have seen that installing GitHub Desktop can help. Here’s an explanation of how this works.
You need to be signed-in to comment on this post. Login.
Julieth Silao
October 6, 2022
use_git_config(user.name = "Julieth Silao", user.email = silaojulieth@gmail.com) Error in list2(...) : object 'silaojulieth' not found
Julieth Silao
October 6, 2022
Help please
David Keyes
October 6, 2022
Try putting your email address in quotes.
Chelsea Ruder
April 20, 2023
This is the error I am getting:
Error in libgit2::git_config_set_string : failed to create locked file 'H:/.gitconfig.lock': The network path was not found.
David Keyes
April 21, 2023
Are you working on a computer with a network drive? Is that the H drive here?
Chelsea Ruder
April 26, 2023
To be honest, I'm not sure... Let me look into this a bit more.
Chelsea Ruder
April 26, 2023
Yes, it is a computer with a network drive. Can I reconfigure not using the H drive? Or what other work around do you suggest?
David Keyes
April 26, 2023
Do you have admin access?
Amanda Braley
April 25, 2023
I'm on a company lap top where you helped me redirect my package storage. Upon trying to update package and install "usethis", I have an error that says "Error in install.packages : ERROR: failed to lock directory ‘C:\Users\braley\Documents\RPackages’ for modifying Try removing ‘C:\Users\braley\Documents\RPackages/00LOCK’" I need help learning how to remove and then, I assume, replace the 00LOCK :)
David Keyes
April 25, 2023
Can you go into that directory (C:\Users\braley\Documents\RPackages) using Windows Explorer, find the 00LOCK file, delete it, and try to install the package again?