So I\'m following this guide here to create a Github page
I created a repository, cloned it to my project directory and pushed, finally got to this last step:
The solution that solved the 404 error page was to change the Branch from Master to gt-pages
If you have the correct repository name and you still get a 404 error a solution might be to push to the repository.
This is what worked for me. After the push it showed up instantly.
In my case it happened because i had my index.html file inside a folder from a main branch. For it to work you must have a file index.html directly just inside your first repositories not in any folders or sub-folders inside it. That's it.
For me the second commit directly shown my Github page. This is very useful.
Turns out I had an error in my html file "No newline at end of file". Once I fixed this problem and did another Commit and Push, it worked.
go to project settings, and scroll down, find the github pages section. it might say you haven't choose a source. i chose one, and wait for 2 minutes, then it works.