For this week’s lesson, view it on our YouTube
For demo video, view it on our YouTube
Open a new folder in VSCode.
Create a new file in that folder called “index.html”. You can do this by going into your file explorer and creating a new file.
touch index.html
Open index.html and paste in this code
Look at index.html and make sure that it produces the same output.
open index.html
Create a new repository in GitHub.
In your VSCode Terminal, put in the following code:
git init
git add .
git commit -m "Initial commit"
On GitHub, copy the code from the second option “…or push an existing repository from the command line” and paste it in your terminal.
git remote add origin https://github.com/GITHUB_USERNAME/REPO_NAME.git
git branch -M master
git push -u origin master
Go to the Settings and scroll down to GitHub Pages.
Click source and select “master” from the dropdown. You should see a blue box that says it’s ready to be published.
Wait approximately 5 minutes and refresh. When that blue box changes to green, click the hyperlink and your page will be available for viewing from any device!
Turn the link in the green box into the “Week 3: GitHub” assignment on Collab for this week’s grade
Resources for learning more about Web Development
ssh bandit0@bandit.labs.overthewire.org -p 2220
bandit0