Learn
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:
your-user-name.github.io
In the example above, you would replace your-user-name
with your actual GitHub user name.
Instructions
Again, in your own browser:
- 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.
Sign up to start coding
By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.