Master branch dont show in gh-pages

Hello, ive followed an old tutorial about publishing in github pages.

The thing is that they recommend to create a gh-pages branch and to assure delete the master branch. So you are safe and the web published in github.io

Recently ive read github documentation and it says that you can use either master or gh-branches…

The problem im facing is that many of my students can watch the web with a master branch ( no gh-pages created).

But one of my students didnt work… He gets a 404 error, althoug he has a index.html found…

You could think is some path error or mistake.

But he created a gh-pages and it worked as expected. So no error or linking related…

If he deleted the gh-pages again, it show the 404 error…

Perhaps a bug ?

Thanks

1 Like

Can you show me a picture of his code

also show me a picture of his settings at the github pages section

merge gh-pages branch to master and set the source to master

In this repository ( is public you can take a look whatever you want):

Repository : https://github.com/Werner365/RemoteDiariWerner

Web ( gh-pages) :https://werner365.github.io/RemoteDiariWerner/

The student couldnt use the master branch because it didnt work ( error 404), I get it to work creating a new branch gh-pages i then it worked. I dont know why if i only has the master branch it doesnt work.

Thanks

Ok, I will take a look

I will look at everything except the settings

i need admin privilages to see settings

First go to settings

Next scroll down to GitHub Pages

Next click on the Source dropdown

Now click Master

Now press Save

Finaly merge gh-pages into master

Seems that the problem was that github pages takes some time to load. The student revert the changes and seems to work. Sorry for the inconvenience. If its any updates about this issue id report.

The objective of the question was not merging into one branch, but to guess why master branch wasnt published as readed in documentation. Seems that some orders ( specially change in css) take some time and others are almost live changes.

Thanks for your help.

2 Likes