1-2Github Pages
๐ Complete before class
- ๐ 0.0 Introduction (1โ6)
- ๐ Module 0.1 How This Book Is Organized (6โ10)
- ๐ Module 0.2 Technical Requirements (11โ15)
- ๐ Module 0.3 Conventions & Resources (16โ18)
- Take the day 1 survey
Learning Objectives
- Create a GitHub repository, add an index.html file with proper HTML structure, and commit the changes.
- Enable GitHub Pages to publish a repository as a live website.
- Install and configure Git locally, and troubleshoot at least one peerโs setup issue.
๐ Git Introduction
Section titled โ๐ Git IntroductionโToday weโll setup Git and Github so we can build and publish entire websites.
- How do you currently manage versions of your projects, papers, etc.?
- Git & Github slides (5-14 only)
๐ How to Set Up a New Web Project with Git
Section titled โ๐ How to Set Up a New Web Project with GitโThis exercise establishes best practices for setting up a new website project, including the index.html page, and tracking and publishing with Git. Document every step you get stuck on โ this becomes your troubleshooting log for the semester.
- Login or create an account at https://github.com
- Click the plus button at the top right of your page to create a New Repository.
- Name the repository
first-websiteand enableAdd README. - Click โCreate repository.โ
- Click โAdd fileโ to create a new file in your
first-websiterepo, and name itindex.html. - Add the html, head, and body elements that define the structure of an HTML file. Your code should look like the following:
<html> <head> <title>Hello, World!</title> </head> <body> <h1>Hello, World!</h1> </body></html>- Press Commit changes . . . and add a commit message about your changes, such as โCreate new file.โ Press Commit and the code you added to your file will be saved. You can verify this under the History tab.
๐ Enable GitHub Pages
Section titled โ๐ Enable GitHub PagesโGitHub Pages is a service that lets you publish web pages for the world to see. In this exercise you will publish the contents of your repo as a live website.
See page 38 in the book for instructions or check the wiki for a video demonstration of these exercises.
๐ Install Git
Section titled โ๐ Install GitโThe Critical Web Design book shows how to use Github Codespaces. You are free to use this method, but I recommended running Git, Github Desktop, and VS Code on your own machine, which gives you more flexibility.
- Install and Configure Git
- Continue following Git Milestones
Finished before class is over?
Section titled โFinished before class is over?โFind one person who got something working that you didnโt, and one person you can help. Spend 15 min solving each otherโs setup issues. Report unresolved questions to the class.
๐ Homework
- โQuiz 01 - Git
- ๐ Ch 1 Context (19โ27)

