Introduction to using Git and GitHub

Introduction

The following is intended as a set of tips for people learning how to use Git and GitHub.

Session aims

By the end of the session you should

  • have a basic understanding of how Git works
  • be able to install Git and GitHub Desktop on your computer
  • be able to perform common Git operations using GitHub Desktop and the GitHub web interface, including
    • clone a repo from GitHub
    • make a new branch
    • make commits
    • push your branch to GitHub
    • make a pull request

Guides to Git and GitHub

There are many excellent guides to Git and GitHub online, e.g.,

  • Intro to GitHub here
  • GitHub Training & Guides YouTube channel here
  • Git documentation and training here
  • Hadley Wickham on Git here
  • Jenny Bryan on Git and GitHub with R here

And most relevantly the OpenSAFELY documentation here.