I had a similar problem for the private repository. My Git project contained index.html in root but the page did not display under http(s)://.github.io/
path.
The solution for either way (public repository or not) is in enabling GitHub pages in project repository settings under 'GitHub pages'.
However, be aware that enabling pages under private repository make the .html files public.