How to get the drop-down menu for gh pages?

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 .
(https://docs.github.com/en/github/working-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site)

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 than username.github.io.

1 Like