问题描述
此处是我在gh-pages
分支上的GitHub存储库.一切看起来不错,我有我的index.html
,我的CSS,JS和图片文件夹.
Here is my GitHub repository on the gh-pages
branch.Everything looks good, I have my index.html
, my CSS, JS and pictures folders.
但是当我访问 http://roine.github.com/p1 时,我不会收到HTTP 404找到了.
But when I access http://roine.github.com/p1 I get HTTP 404 not found.
有什么解释和解决方法吗?
Any explanation and solution?
推荐答案
我只有一次提交所有文件.我推送了一个空的提交,刷新了页面,它开始工作了.
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
如果这不起作用,如@Hendrikto在评论中指出的,请查看 Github状态页并确保GitHub Pages正常运行.
If this doesn't work, as @Hendrikto pointed out in the comments, check out the Github status page and make sure GitHub Pages are operational.
这篇关于如何在Github页面上修复HTTP 404?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!