如何修复Github页上的404页? [英] How to fix page 404 on Github Page?
问题描述
https://github.com/roine/p1/tree/gh-pages 这里是gh-pages分支上的一个我的github存储库。
一切看起来不错,我有我的index.html,我的CSS,js和图片文件夹。
但是当我访问http://roine.github.com/p1 我有一个404页面。
任何解释和解决方案解决方案
四个月前我联系过支持人员,他们告诉我这是他们身边的问题,它(为当前提交)。
今天我再试一次
-
我在github上删除了gh-pages分支
git push origin --delete gh-pages
-
我删除了本地的gh-pages分支
git branch -D gh-pages
-
我重新初始化git
$ bgit init
-
我在本地重新创建了分支
git branch gh-pages
-
我将gh-pages分支推送到github
git push origin gh-pages
工作正常,我终于可以在页面上更新我的文件。
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.
这篇关于如何修复Github页上的404页?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!