Version control with git and GitHub

Intro and Objectives

Learning the basics of version control with git and GitHub are pretty essential skills in the data science world. Once you learn to use version control, you’ll wonder how you ever did without it. It provides tremendous peace of mind.

After doing the activities in this section, you will be able to:

  • understand the basic concepts of version control and the use of git

  • create git repos and use git to stage and commit changes

  • review the history of changes and revert to old versions

  • create remote repos in GitHub and push and pull between local and remote repos

  • put an R project under version control and use git and GitHub from within R Studio

Readings

Downloads and other resources

Activities

Use the git_lesson_r4ds.md document and the following screencasts to learn how to use git and GitHub with R projects:

I also highly recommend that you:

Some other things you should do:

  • Go to https://github.com/create a free account and go through their tutorials

  • Read about git integration with R Studio in Section 2.2.3 of R for Everyone

Explore (OPTIONAL)