Deploy a static website to GitHub Pages
In this Lab, you will find and deploy a free (optional) static website template to GiHub pages.
Pre-requisites
Instructions
-
Search for a "free static website template" online.
-
Download the template files to your workspace.
-
Navigate to the root of the template folder using the terminal.
-
Initialize a new repo:
$ git init
-
Add all the template files to the staging area:
$ git add --all
- You can also use
git add .
- You can also use
-
Commit changes:
$ git commit -m "Initial commit"
-
Customize the template by making any changes to page titles, headings and/or navigation as you see fit.
-
Add and commit your changes as you did on Steps 5 and 6.
-
When you're ready, push your changes to GitHub:
- Create an empty repo on GitHub. DO NOT initialize with a README file (or license, gitignore files);
- You will be taken to an empty repo with sample commands to copy/paste;
- Copy the code listed under: "
…or push an existing repository from the command line
" - Paste the code into your terminal and hit enter.
- Refresh your GitHub repo and you should see the new files from your remote repo!