Deploying To Github Pages
If you haven't yet deployed to Github, start at First-time setup. Otherwise, start at Every time.
First-time setup
Goals
Steps
Step 1: Make a special new directory
Terminalmkdir [your-github-user-name].github.ioStep 2: Initialize a new local git repository
Terminalcd [your-github-user-name].github.ioTerminalgit initStep 3: Make a commit
Terminaltouch index.html git add index.htmlTerminalgit commit -m 'first commit'Step 4: Add Github as a remote
Terminalgit remote add origin https://[your-github-user-name]@github.com/[your-github-user-name]/[your-github-user-name].github.io.gitStep 5: Create a new repo via the Github UI
![]()
![]()
Step 6: Push your code to Github
Terminalgit push -u origin masterStep 7
Every time
Goals
Step 1: Commit any pending changes to git
Terminalgit statusTerminalgit add . git commit -m "Some helpful message for your future self"Step 2: Push changes to Github
Terminalgit push origin masterStep 3: Visit your site
Explanation
Back to Add More Elements