Skip to content
R for the Rest of Us Logo

R in 3 Months (Fall 2021)

Commit History

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

  1. Add some additional text to your README.md

  2. Commit your changes (make sure to stage your README.md file and add a commit message)

  3. View the history of your repository

  4. Make sure you understand the commit history (top section) and the diff (bottom section)

  5. View your README.md at a previous commit by clicking on “View file …”

Have any questions? Put them below and we will help you out!

You need to be signed-in to comment on this post. Login.

Lina Khan

Lina Khan • October 20, 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.

Amanda Varley

Amanda Varley • October 21, 2021

Hi David! I'm getting an error when I try to run a commit. I was able to do it previously but today it's not working. I have restarted R and gone through Configure Git, Create a Local Git Repository, and Commits again and am still having the same error. "On branch master Changes not staged for commit: (use "git add ..." to update what will be committed) (use "git restore ..." to discard changes in working directory) modified: README.md

Untracked files: (use "git add ..." to include in what will be committed) setting-up-github.Rmd

no changes added to commit (use "git add" and/or "git commit -a")"

2 Questions:

  1. What should I do with this error?
  2. I noticed that I saved the .md file before committing, and have run at least 3-4 commits, but will only see the original file I uploaded and the most recent commit, not any of the commits in between. How can I make the interim commits display too?

Course Content

134 Lessons