Deploy Your Website to GitHub Pages

Create Your Repo

In order to publish your site using GitHub Pages, you'll need to create a repository (repo) on GitHub.

A GitHub repository is an online, central storage place where you can store files and all the versions of those files. We'll use the repo you create to store the contents of your website.

Your repo's name must also follow GitHub Pages' naming convention, otherwise your site will not publish at all.

Specifically, the repo's name must be in the following format:


In the example above, you would replace your-user-name with your actual GitHub user name.


Again, in your own browser:

  1. Create a new repo in your GitHub account and name it according to the GitHub Pages naming convention, as in the example above.

Note: For this course, do not initialize your repo with a README. If you do, you may run into errors later in the course.

Community Forums
Get help and ask questions in the Codecademy Forums
Report a Bug
If you see a bug or any other issue with this page, please report it here.