How to get the drop-down menu for gh pages? #22086
-
I follow the online tutorial to deploy me website using react. but my website only show me the Readme.md. I found that I need to switch the gh pages in setting . |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
GitHub Pages has 2 different types of sites: User/Organization sites and Project sites: User/Organization sites are created when you name the repository If you’d prefer to serve your site from the |
Beta Was this translation helpful? Give feedback.
GitHub Pages has 2 different types of sites: User/Organization sites and Project sites:
https://docs.github.com/en/github/working-with-github-pages/about-github-pages#types-of-github-pages-sites
User/Organization sites are created when you name the repository
username.github.io
and can only be served from the master branch. From the looks of your screenshot it seems like you’ve created this type of site, meaning the dropdown menu isn’t available.If you’d prefer to serve your site from the
gh-pages
branch then you’ll need to change the type of Pages site to a Project site by renaming your repository to something other thanusername.github.io
.