Guide: Setting Up git for Data Science Exploration
To set up git, there are certain commands you will run:
- Once for the entire semester (“Course Setup”),
- Once for each computer you use (“Computer Setup”),
- 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.
- Visit: https://edu.cs.illinois.edu/create-ghe-repo/stat207-sp20/
- Follow the instructions to create your repository, coming back here once you have the URL
Computer Setup
-
Create a
stat207
folder on your Desktop (if you haven’t already) - Using your command line, run the following commands to navigate into your
stat207
folder:cd Desktop cd stat207
- 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
- Navigate into your git directory by going into your NetID-named folder (replace NETID with yours):
cd NETID
- 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/stat207-sp20/_release.git
Assignment Setup
Each assignment will provide specific instructions on how to use git to fetch and submit your work.