html – 没有命名存储库的GitHub组织页面

html – 没有命名存储库的GitHub组织页面,第1张

概述是否可以为 GitHub组织创建一个网站(使用 GitHub页面)而无需创建具有相同名称的存储库? 例如,对于组织CompPyrol,我创建了一个与comppyrol.github.io组织同名的存储库.该网站的html和css文件位于此存储库中.因此,该组织的网站位于http://comppyrol.github.io.这有效,但我希望为组织使用GitHub页面而不必为网站创建存储库.我知道您可 是否可以为 GitHub组织创建一个网站(使用 GitHub页面)而无需创建具有相同名称的存储库?

例如,对于组织CompPyrol,我创建了一个与comppyrol.github.io组织同名的存储库.该网站的HTML和CSS文件位于此存储库中.因此,该组织的网站位于http://comppyrol.github.io.这有效,但我希望为组织使用GitHub页面而不必为网站创建存储库.我知道您可以为Web文件创建孤立的分支gh页面,但这似乎是针对单个存储库或项目,而不是针对整个组织页面.

解决方法 这是不可能的. GitHub的 documentation很清楚:

User & Organization Pages

User & Organization Pages live in a special repository dedicated to GitHub Pages files. You will need to name this repository with the
account name,e.g.
07001

You must use the username/username.github.io naming scheme. Content from the master branch 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组织页面所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/web/1065183.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-26
下一篇2022-05-26

发表评论

登录后才能评论

评论列表(0条)

    保存