Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Version control for data science with git

Class content

In this course, students will learn what version control is, why it is important, and how it can be used in data science projects. Each day will begin with a lecture, followed by hands-on practice. The first day will focus on the git distributed version control system. Students will create a new git project, track changes to code, and recover from simple mistakes. The second day will focus on collaborating with others via GitHub. Students will contribute to an existing project via pull requests.

This repository contains lab materials (i.e., the hands-on exercises) for this class. See the links below for details on each exercise.

Day 1 exercise

Day 2 exercise

Class requirements

You will need to have git installed on your laptop for this class. You will also need a plain text editor; we recommend VS Code. You can install both git and VS Code as user, without requiring admin privileges.

Familiarity with Unix will be helpful, but not strictly required.

git

The recommended way to install git is as described in the documentation, which will require admin privileges (please contact IT for assistance).

You can alternatively install git without requiring admin privileges as follows:

  1. Install conda as user: see anaconda installation.

  2. Install git using conda inside a new conda environment. To do this, in Terminal or Anaconda Prompt, execute:

    conda create -n mygitenv git
  3. Activate this environment by executing in Terminal or Anaconda Prompt:

    conda activate mygitenv
  4. Test that you have git:

    git --version

VS Code

It is highly recommended to install VS Code as user, as this will allow you to update VS Code and install extensions yourself. (If you install it with admin privileges, then you'll need admin privileges each time you need to update it or install an extension.)

To install VS Code as user on Windows, follow these instructions. On MacOS, you simply need to drag and drop the downloaded application to a user directory where you have write permissions (rather than the /Applications/ directory).

Additional resources

Using git via a web browser

  • Exercise - Try out Git: You can use git via a web browser; sign in using SSO to gain access to Azure Cloud Shell for 2 hours
  • GIT Web Terminal: web browser-based terminal where you can test out git commands; not all git commands are supported (e.g., git init)

Microsoft Training

GitHub Education

About

Version control for data science with git

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages