Skip to main content

Learning Git and GitHub

If you write code with others, you’ll eventually find yourself using git and GitHub.  Here are a few resources for getting started and improving your skills.

Setup

Follow steps 1 & 2 here to set up a GitHub account and install git.  Or, if you’re using git with R and RStudio, work your way through the whole guide to setting up Git with R/RStudio.

You also need to configure git with your name and email (use the email for your GitHub account) and set up GitHub authentication (setting up SSH authentication is the most straightforward).

Learning Resources

When and Why to Use Git

How to Use Git

Git with Specific Tools

Reference Resources

  • Git Cheat Sheet from Atlassian: a list of common git commands
  • Pro Git: the official tutorial in book form, available online; not the place for a beginner to start, but good for reference
  • Dangit, Git?!?: a guide to help you when you’ve done something wrong
  • Oh, sh**, git!: another guide to help you when something’s gone wrong