How to fix page 404 on Github Page?
https://github.com/roine/p1/tree/gh-pages here is a my github repository on the gh-pages branch. Everything looks good, I have my index.html, my css, js and pictures folders.
But when I access http://roine.github.com/p1 I have a 404 pages.
Any explanation and solution?
Four months ago I have contacted the support and they told me it was a problem on their side, they have temporarily fix it (for the current commit).
Today I tried again
I deleted the gh-pages branch on github
git push origin --delete gh-pages
I deleted the gh-pages branch on local
git branch -D gh-pages
I reinitialized git
git init
I recreated the branch on local
git branch gh-pages
I pushed the gh-pages branch to github
git push origin gh-pages
Works fine, I can finally update my files on the page.
In my case, I had folders whose names started with _
(like _css
and _js
), which GH Pages ignores as per Jekyll processing rules. If you don't use Jekyll, the workaround is to place a file named .nojekyll
in the root directory.
I had just one commit with all my files. I pushed an empty commit, refreshed the page and it worked.
git commit --allow-empty -m "Trigger rebuild"
git push
链接地址: http://www.djcxy.com/p/89072.html
上一篇: 已经有自定义CNAME时,在多个存储库中使用Github页面?
下一篇: 如何修复Github页上的404页?