如何修复Github页上的404页? [英] How to fix page 404 on Github Page?

查看:1060
本文介绍了如何修复Github页上的404页?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

https://github.com/roine/p1/tree/gh-pages 这里是gh-pages分支上的一个我的github存储库。
一切看起来不错,我有我的index.html,我的CSS,js和图片文件夹。



但是当我访问http://roine.github.com/p1 我有一个404页面。



任何解释和解决方案解决方案

四个月前我联系过支持人员,他们告诉我这是他们身边的问题,它(为当前提交)。



今天我再试一次


  1. 我在github上删除了gh-pages分支



    git push origin --delete gh-pages

  2. 我删除了本地的gh-pages分支

    git branch -D gh-pages


  3. 我重新初始化git
    $ b git init


  4. 我在本地重新创建了分支

    git branch gh-pages


  5. 我将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

  1. I deleted the gh-pages branch on github

    git push origin --delete gh-pages

  2. I deleted the gh-pages branch on local

    git branch -D gh-pages

  3. I reinitialized git

    git init

  4. I recreated the branch on local

    git branch gh-pages

  5. 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆