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¶
RforE - Section 2.2.3
Happy Git and GitHub for the useR (Jenny Bryan)
Downloads and other resources¶
git cheat sheet (from GitHub)
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:
Do the Version Control with Git lesson at Software Carpentry.
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)¶
git and GitHub videos for beginners - Kevin Markham (Data School)
Pro git- the git book
Resources page from Jenny Bryan’s “Happy Git” book has links to more resources
Step by step guide to contributing on GitHub- Kevin Markham (Data School)