简体   繁体   English

如何在GitHub上访问来自私有存储库的页面?

[英]How are pages from a private repository accessed on GitHub?

是否可以从个人档案中看到私有存储库的项目页面(gh-pages分支),还是只有在有人碰巧猜到正确链接的情况下才能找到它?

According to github help documentation : 根据github帮助文档

"GitHub Pages sites are publicly available on the internet, even if their repositories are private. If you have sensitive data in your Page repository, you may want to remove it before publishing." “ GitHub Pages站点可以在Internet上公开访问,即使它们的存储库是私有的。如果您的Page存储库中有敏感数据,您可能希望在发布之前将其删除。”

If your github-pages sites is a User Page it can only be published from master . 如果您的github-pages网站是用户页面,则只能从master发布 Otherwise you set the publishing branch in the repo settings and you can select master or gh-pages to publish from if each exist. 否则,您可以在存储库设置中设置发布分支,并且可以选择要发布的master gh-pagesgh-pages (For pages that are not User or Org pages, there is also an option to publish from a /docs/ directory on your master branch.) (对于不是用户页面或组织页面的页面,还有一个选项可以您的master分支上/docs/目录中发布 。)

The url to access the github pages site is username.github.io for User Pages or username.github.io/projectname for Project Pages as summarized in this table. 访问GitHub的网页网站的URL是username.github.io为用户的页面或username.github.io/projectname项目的页面作为总结此表。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM