为什么我推送到 GitHub 的 GitHub 页面存储库没有上线?

Why isn't the GitHub Pages repository I pushed up to GitHub live?

这是 GitHub 页面上托管的存储库: https://github.com/nezmustafa123/todolistjquery.github.io

我是不是命名不当?

html 文件必须命名为 index.html,以便 Github 页加载它。

直播,只是不是您期望找到它的地方:https://nezmustafa123.github.io/todolistjquery.github.io/

有两种类型的 GitHub 页面站点:

  1. User / organization sites
  2. Project sites

用户/组织网站

用户/组织站点的存储库必须命名为 <your-username>.github.io(在您的例子中为 nezmustafa123.github.io)并且是从 master 分支构建的。它们位于 https://<your-username>.github.io/.

如果您想在 https://todolistjquery.github.io/ 上托管,您需要拥有 todolistjquery 用户或组织。

项目网站

您拥有的是一个 项目 站点,因为存储库名称与您的 GitHub 用户名不匹配。项目站点托管在 https://<your-username>.github.io/<repository-name>/。这里您的存储库名称是 todolistjquery.github.io,所有这些都包含在您的 GitHub 页面 URL.

可以从 gh-pages 分支、master 分支或 master 分支中的 docs/ 文件夹构建项目站点。这是可配置的。

我建议将您的存储库重命名为 todolistjquery,这样它将托管在 https://nezmustafa123.github.io/todolistjquery/