Cloning a Repo

  1. First go to a repository of that you’d like to clone.

    Example:

    https://github.com/Olin-Hydro/hydrangea

  2. Click on the the “Code” button and copy the clone address

    Untitled

    → It will look something like this git@github.com:Olin-Hydro/hydrangea.git or https://github.com/Olin-Hydro/hydrangea.git. Either is fine.

  3. Now, open up your terminal and cd into the folder that you’d like this repo to be cloned at.

# This is an example assuming you have a directory from home
# "/projects/Olin/hydro"
$ cd projects/Olin/hydro
$ git clone <https://github.com/Olin-Hydro/hydrangea.git> # Repo for Hydrangea
$ cd hydrangea # Move into the repo folder
$ code . # This will open up the repo in VSCode
  1. On VSCode, you should see all the files and folders that you saw on the GitHub page of the repo.

You’ve successfully cloned a repository from GitHub to your local machine!