Git and GitHub: Getting Started#

Before we set up your coding environment, let’s clarify what Git and GitHub are:

  • Git is a free version control system. It helps track changes in your files, manage different versions, and merge updates from collaborators.

  • GitHub is a company and platform (github.com) that hosts Git repositories online. Think of it as a central hub where you and your collaborators sync your code.

You’ll use Git to download course materials and work on your homework assignments throughout the term.

GitHub is a web-based application and does not require set-up. Since you will be cloning the course GitHub repository in order to run the lecture notebooks locally, you need git installed locally. Follow the instructions below for this.

Option 1: GitHub Desktop (easiest)#

If you’re new to the command line, you may prefer GitHub Desktop. It provides a simple interface for working with Git and GitHub.

That said, we recommend at least some familiarity with the command line version, since it’s widely used in data science and software development.

Learning git#

There are many free online resources for learning git. One possibility is the Software Carpentry git tutorial.