Github page shows master branch, not gh-pages

前端 未结 2 1599
花落未央
花落未央 2021-02-19 10:32

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 con

相关标签:
2条回答
  • 2021-02-19 11:01

    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 http://username.github.io.

    Project pages can be part of any repository, and are published from the special gh-pages branch. They can be browsed at http://username.github.io/project-name.

    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 http://username.github.io, you must have a User / Organization Page, which must publish from the master branch.

    0 讨论(0)
  • 2021-02-19 11:04

    Check this on the repository setting:

    0 讨论(0)
提交回复
热议问题