From the course: Learning GitHub Pages

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

GitHub Pages

GitHub Pages

- [Instructor] GitHib pages is a feature that lets you quickly host sites using your repositories. It's a great way to host static content and it's completely free. The feature allows you to publish any type of static HTML websites, so if you just have some simple HTML, you can publish that, or you can publish an entire website using the current repository. In order to do that, the content needs to live in either the root folder of the master branch, in a folder called docs that can live on any branch, or in a separate branch altogether. Now, publishing isn't an instant process. It takes a few minutes to process the content and generate the site, so you can't really use GitHub pages as a live preview. Let's take a look at how it works. I'm going to go to the github.new URL to create a new repository. I'll call this publishing-pages. And I'll go ahead and create a repository. I'm going to need to add a new file, so I'll…

Contents