First go to a repository of that you’d like to clone.
Example:
Click on the the “Code” button and copy the clone address
→ It will look something like this git@github.com:Olin-Hydro/hydrangea.git
or https://github.com/Olin-Hydro/hydrangea.git
. Either is fine.
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
You’ve successfully cloned a repository from GitHub to your local machine!