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
Commit History
This lesson is locked
This lesson is called Commit History, part of the Using Git and GitHub with R course. This lesson is called Commit History, 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
Add some additional text to your README.md
Commit your changes (make sure to stage your README.md file and add a commit message)
View the history of your repository
Make sure you understand the commit history (top section) and the diff (bottom section)
View your README.md at a previous commit by clicking on “View file …”
You need to be signed-in to comment on this post. Login.
Lina Khan
October 19, 2021
Hi David, for some reason when I create the README file and then change/add the text and hit 'commit' again, my README file isn't there to stage. I've tried deleting the local-first project, creating a new one and starting over, and I get the same issue.
David Keyes
October 19, 2021
Can you try editing the README file a bit (just add some random text) and see if it shows up then?
Lina Khan
October 19, 2021
I did try, and I saw it and was able to hit commit and 'stage' it with a comment. But later when I wanted to add more text and hit commit again to continue testing it out, it was gone again from being able to stage.
David Keyes
October 19, 2021
Are you sure that you saved your file before hitting commit? It will only show files ready to be staged that have already been saved.
Lina Khan
October 20, 2021
Thanks, David! Once I hit save that seemed to fix it.
David Keyes
October 20, 2021
Glad you got it figured out!