How to clone a repo


For those who haven’t done this, or who maybe have forgotten, here’s the “right” way to get access to the materials in the class github repository: clone your own copy of it.

On Windows, one way to do this is first to install “WSL” (“Windows Subsystem for Linux”) before proceeding with the instructions below; this can be accomplished by opening a “power shell” and typing “wsl --install” (or “wsl --install -d ubuntu” if that didn’t work). Then, after restarting your computer, you should be able to type wsl at the “Start” menu to get a Linux-y shell which will accept the commands below.

Okay then, assuming you’re set up on Mac, Linux, or Windows-with-WSL, type:

git clone git@github.com:divilian/data470.git

or, if you’ve never set up github SSH keys before:

git clone https://github.com/divilian/data470.git

If you get a message like “git: command not found“, you’ll need to install git. On Windows-with-WSL, that should be: “sudo apt update” followed by “sudo apt install git -y

After successfully doing this, there should be a folder/directory called “data470” on your computer, in which are all the contents of the class repo, including the stuff I posted yesterday. From that point on, whenever I post something new, you can go into this folder/directory and type: “git pull” and it will always update your computer with the latest.


Leave a Reply

Your email address will not be published. Required fields are marked *

DATA 470D3 – Natural Language Processing

stephendavies.org