Skip to content

Latest commit

 

History

History
95 lines (67 loc) · 3.21 KB

File metadata and controls

95 lines (67 loc) · 3.21 KB

Webdev Lab Notebook - Setup Instructions

Git & VS Code Installation

  1. Install Git.

  2. Download VS Code as your code editor.

  3. Sign up for a GitHub account and the GitHub Student Pack.

  4. Set up SSH keys for GitHub.

Setting up the Lab Notebook Repo (with SSH)

  1. Navigate to your preferred folder and clone the repo. Use any folder name for .
$ git clone git@github.com:caterinasworld/webdev-lab-notebook.git <folder-name>

Cloning into '<folder-name>'...
remote: Enumerating objects: 163, done.
remote: Counting objects: 100% (163/163), done.
remote: Compressing objects: 100% (93/93), done.
remote: Total 163 (delta 80), reused 136 (delta 61), pack-reused 0
Receiving objects: 100% (163/163), 68.15 KiB | 2.20 MiB/s, done.
Resolving deltas: 100% (80/80), done.
  1. Navigate into the newly created <folder-name> folder and rename the remote.
$ cd <folder-name>/

$ git remote -v
origin   git@github.com:caterinasworld/webdev-lab-notebook.git (fetch)
origin   git@github.com:caterinasworld/webdev-lab-notebook.git (push)

$ git remote rename origin labs

$ git remote -v
labs    git@github.com:caterinasworld/webdev-lab-notebook.git (fetch)
labs    git@github.com:caterinasworld/webdev-lab-notebook.git (push)
  1. Navigate to your GitHub account and create a new public repo, i.e. student-webdev-labs.

    Important: Do not create a README file. There’s already one in the repository you have cloned.

  2. Add the public GitHub repository you created as a remote.

$ git remote add origin git@github.com:student-username/student-webdev-labs.git

$ git remote -v
labs    git@github.com:caterinasworld/webdev-lab-notebook.git (fetch)
labs    git@github.com:caterinasworld/webdev-lab-notebook.git (push)
origin   git@github.com:student-username/student-webdev-labs.git (fetch)
origin   git@github.com:student-username/student-webdev-labs.git (push)
  1. Push the files you cloned into the newly created private remote repository.
$ git push -u origin main
Enumerating objects: 163, done.
Counting objects: 100% (163/163), done.
Delta compression using up to 4 threads
Compressing objects: 100% (74/74), done.
Writing objects: 100% (163/163), 68.15 KiB | 13.63 MiB/s, done.
Total 163 (delta 80), reused 163 (delta 80), pack-reused 0
remote: Resolving deltas: 100% (80/80), done.
To github.com:student-username/student-webdev-labs.git
 * [new branch]      main -> main
Branch 'main' set up to track remote branch 'main' from 'origin'.
  1. Once 'main' is set up to track the remote origin, you can push changes with the following command.
$ git push
  1. When there are updates to the homework starter files, pull the new updates from the ‘homework’ remote.
$ git pull labs main