DS1: Basic Git Design Studio


This design studio prepares you to use the simplest form of Git, i.e., on a local system using a command line interface, all for yourself (not for a team). You need to understand the core concepts of branching, merging, recovery, and then you will be prepared to learn to use Git remotely in the upcoming project.

User story: As a user, I want to understand how git works so that I can understand what is happening when I execute basic git commands, including branching, merging, and recovery.

As with every design studio, there are two parts:

  1. Tasks to be performed prior to lecture to prepare for the design studio
  2. Tasks to be performed after the lecture

1. Individual Preparatory Tasks for Basic Git Design Studio

You will need to perform the following three tasks to prepare for the Basic Git Design Studio:

  1. Read the collected excerpts from the book "Pro Git: Everything that you need to know about Git by Scott Chacon and Ben Straub" that we provided here. For your convenience, the PDF file covers the following pages:

    1. pp 27-31: About version control
    2. pp 31-35: Git basics
    3. pp 36-38: Installing git (stop at installing from sources)
    4. pp 39-42: First time setup

  2. Take the Canvas quiz called PreQ1 by Thursday, September 1, 11:59 PM.
  3. Ensure that Git is installed on your computer. To find out if you already have git, execute:

    $ git --version

    The departmental linux machine already have git installed. If you own a mac and type git in a command line of a terminal, you will be prompted to install xcode (if you didn't already have it installed). This will contain the necessary software for Git. Most Linux systems should already have git installed. If not, check out the links from the git book at https://git-scm.com/book/en/v2/Getting-Started-Installing-Git

    If you are running Windows, the easiest thing is to download Git BASH from https://git-for-windows.github.io/. This gives you a terminal window running the bash shell and installs git on your system.

Note: The lecture on Friday, Sep 2, will also include a demo of git. You should do the tutorial after the lecture because it will be hard to watch and keep up with the demo.

2. Individual After-class Tasks for Basic Git Design Studio

During the lecture, your instructor will present some slides and run a demo of basic git as a tutorial.

  1. For your reference, the slides that the instructor will use are also available here.
  2. The steps for the tutorial and answer sheet are available here. You will work on the tutorial after class.
  3. Submit the filled in questionnaire at the beginning of next lecture (Wednesday, September 7) get a grade for this design studio.