
例如,对于组织CompPyrol,我创建了一个与comppyrol.github.io组织同名的存储库.该网站的HTML和CSS文件位于此存储库中.因此,该组织的网站位于http://comppyrol.github.io.这有效,但我希望为组织使用GitHub页面而不必为网站创建存储库.我知道您可以为Web文件创建孤立的分支gh页面,但这似乎是针对单个存储库或项目,而不是针对整个组织页面.
解决方法 这是不可能的. GitHub的 documentation很清楚:User & Organization PagesUser & Organization Pages live in a special repository dedicated to GitHub Pages files. You will need to name this repository with the
You must use the
account name,e.g.
07001username/username.github.ionaming scheme. Content from themasterbranch will be used to build and publish your GitHub Pages site.
更新:
GitHub页面曾经作为github.com的子域,但是switched to github.io in April,2013.一些存储库仍然使用旧命名设置,但现在托管在新域上:
总结Changes to GitHub repositorIEs:
User Pages repositorIEs may Now be named using the new username/username.github.io convention or the older username/username.github.com convention. Existing User Pages repositorIEs named like username/username.github.com do not need to be renamed and will continue to be published indefinitely. If both a username.github.io and a username.github.com repository exists,the username.github.io version wins.
以上是内存溢出为你收集整理的html – 没有命名存储库的GitHub组织页面全部内容,希望文章能够帮你解决html – 没有命名存储库的GitHub组织页面所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)