【发布时间】:2016-12-07 05:18:17
【问题描述】:
我已经尝试过以下线程中显示的内容:
Can I have my Github Pages index.html in a subfolder of the repository?
possible to change where github pages looks for index.html?
基本上,运行 git subtree push --prefix public origin gh-pages 不会做任何事情,我的网站(位于 here)上仍然出现 404 错误。你可以找到我的网站结构here。
另外,一个可能很重要的注意事项:我的站点是从 master 分支部署的,而不是 gh-pages 分支(在运行上述命令之前它甚至不存在)
有什么想法吗?
【问题讨论】:
标签: git github github-pages