Guide: Setting Up git for Data Science Discovery

To set up git, there are certain commands you will run:

  1. Once for the entire semester (“Course Setup”),
  2. Once for each computer you use (“Computer Setup”),
  3. Once each time you work on Data Science Discovery (“Assignment Setup”)

Course Setup

To begin to work on assignments and turn in work, you will need to create a git repository for the course.

Computer Setup

  1. Create a stat107 folder on your Desktop (if you haven’t already)

  2. Using your command line, run the following commands to navigate into your stat107 folder:
    cd Desktop
    cd stat107
    
  3. Clone a local copy of your git repository with the following command (making sure to replace [YOUR-GIT-REPO-URL] with the URL from the “Course Setup”):
    git clone YOUR-GIT-REPO-URL
    
  4. Navigate into your git directory by going into your NetID-named folder:
    cd NETID
    
  5. Set up a connection to the _release repository where code will be released for you:
    git remote add release https://github-dev.cs.illinois.edu/stat107-fa19/_release.git
    
  6. Let git know who you are REPLACE YOUR NAME and EMAIL with your name/email:
    git config user.name "Your Name"
    git config user.email "netid@illinois.edu"
    

Assignment Setup

Each assignment will provide specific instructions on how to use git to fetch and submit your work.