我可以为 github 页面创建多个存储库吗? [英] Can I create more than one repository for github pages?
问题描述
我创建了一个 存储库 用于在 github 上托管博客.有什么方法可以创建更多托管多个博客?我是否只能托管一个存储库(因为 username.github.com 只能使用一次?)
I created a repository for hosting a blog on github.Is there any way that I can create more to host multiple blogs?Am I limited to just one repository for hosting(since username.github.com can only be used once?)
推荐答案
您可以将一个站点发布到 https://
通过发布到一个名为username.github.io"的存储库(替换您的实际用户名).
You can have one site published to https://<username>.github.io
by publishing to the master branch of a repository named "username.github.io" (substituting your actual username).
您还可以将每个 GitHub 项目的附加站点发布到 https://<username>.github.io/<project>
.项目设置让你 选择要发布的分支和目录.
You can also have an additional site per GitHub project published to https://<username>.github.io/<project>
. Project settings let you choose which branch and directory to publish.
GitHub Pages 文档中提供了更好的描述,包括使用自定义域名的选项.
A better description is available in the GitHub Pages documentation, including options for using custom domain names.
(自 2013 年 4 月起,所有 username.github.com
现在是 username.github.io
)
(since April 2013, all username.github.com
are now username.github.io
)
这篇关于我可以为 github 页面创建多个存储库吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!