Github Page Shows Master Branch, Not Gh-Pages

I've managed to push files to the master branch of my repo as well as a second branch called gh-pages. When I launch mysite.github.io it shows the contents of the master branch. Is there a way to redirect it to gh-pages instead?

I'm doing this from the Mac terminal.

2 Answers

It sounds like you're confusing User / Organization pages with Project pages.

User / Organization pages live in a specially named repository called username.github.io, and publish from the master branch. They can be browsed at .

Project pages can be part of any repository, and are published from the special gh-pages branch. They can be browsed at .

If you want to have a project page, make sure that your repository is not named after your GitHub user name. If you want your project to be available at , you must have a User / Organization Page, which must publish from the master branch.

2

Check this on the repository setting:

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Chloe Bennett

Chloe Bennett

Culture, Media & Entertainment Columnist

Chloe Bennett explores the intersection of pop culture, streaming entertainment, digital trends, and contemporary lifestyle. Her weekly commentary reaches thousands of culture enthusiasts.

Share this article
Twitter Facebook Pinterest