遵循完整的说明 https://pages.github.com/
我创建了一个 repo ,我John.github.io
得到了这样一个链接https://github.com/John/Jonh.github.io
之后,我克隆git clone https://github.com/John/John.github.io
了 Next,我根据所有内容创建了一个项目并建立了索引
git add --all
git commit -m "Initial commit"
然后,推git push -u origin master
我通过https://jonh.github.io
404
There isn't a GitHub Pages site here.
我在某个地方错了吗?
您需要在存储库设置中启用 Github Pages
Github -> 你的仓库 -> 设置 -> Github 页面 -> 主分支
在根目录或 /docs 文件夹中应该是 index.html