首页 文章

我的新Github页面没有显示出来

提问于
浏览
23

所以我跟着this guide here to create a Github page

我创建了一个存储库,将其克隆到我的项目目录并推送,最后进入最后一步:

Fire up a browser and go to http://username.github.io. Give it a couple of minutes for your page to show up—there will be a delay this very first time. In the future, changes will show up pretty much instantly.

我的Github回购链接是这样的:https://github.com/leongaban/gabanco

所以我假设我的Github页面链接是:
http://leongaban.gabanco.github.io/

要么

http://leongaban.github.io/

但是目前这两个链接都没有工作:(

有人在创建Github页面吗?最终我想试试Jekyll .

12 回答

  • 9

    正确命名您的存储库,如第一步所述:

    转到GitHub并创建一个名为username.github.io的新存储库,其中username是GitHub上的用户名(或组织名称) .

  • 0

    如果您具有正确的存储库名称并且仍然遇到404错误,则解决方案可能是推送到存储库 .

    这对我有用 . 推后它立即出现 .

  • 20

    我'm not sure if the site just needed some time to show up, but I was getting a 404 error after pushing my master branch... Then I changed my '主题' in the repo'的设置 . 突然间它开始工作了!出现了一个名为 config.yml 的文件,其中包含主题元数据 .

  • 2

    将项目名称重命名为 yourusername@github.com . 在document中提及 .

    此存储库必须使用username / username.github.io命名方案 .

    Edit:

    您只能为User或Org Pages存储库使用您自己的帐户名 . 像joe / bob.github.io这样的存储库不会构建Pages .

  • 0

    在我的情况下,我有正确的存储库名称,仍然有404错误 . 然后我找到this回答,所以我做了一个改变并再次推了推 . 这次我第一次推动的变化出现了 . 所以我等了一会儿,然后几分钟后,我第二次推动的变化出现了 . 可能就是变化不是即时可见的情况 .

  • 10

    对我来说,第二次提交直接显示了我的Github页面 . This非常有用 .

  • 2

    我有同样的问题 . 我通过转到存储库的 Settings 并将存储库的名称更改为 username.github.io 来修复它

  • 0

    我有同样的问题 . 我想首先你需要检查你的Github页面是否已启用 . 您可以从“设置”中查看 . 然后从“github.com/username/repo1/repo2/repo3 ... / blob / master / file.html”更改任何html网站

    到“username.github.io/repo1/repo2/repo3.../file.html” .

    然后试一试 . 祝好运 .

  • 9

    就我而言,我的页面存储库使用username / username.github.io命名方案,但仍然无法工作 .

    我只是将存储库克隆到本地,并新建一个push_test.txt文件并将其推送到存储库,然后https://username.github.io工作 .

  • 1

    事实证明我的html文件中有一个错误“文件末尾没有换行符” . 一旦我解决了这个问题并做了另一个提交和推送,它就有效了 .

  • 0

    在存储库名称第一部分中使用GitHub用户名 . 添加年龄后等待2分钟 . 使用Google网站站长搜索控制台验证您在GitHub页面
    enter image description here
    中创建的页面 .

    rahul-inspired-iosdeveloper.github.io
    
  • 0

    解决404错误页面的解决方案是将Branch从Master更改为gt-pages

相关问题