我们经常发布文档更新,此页面的翻译可能仍在进行中。有关最新信息,请访问英文文档。如果此页面上的翻译有问题,请告诉我们

Using submodules with GitHub Pages

You can use submodules with GitHub Pages to include other projects in your site's code.

GitHub Pages is available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see "GitHub's products."

If the repository for your GitHub Pages site contains submodules, their contents will automatically be pulled in when your site is built.

You can only use submodules that point to public repositories, because the GitHub Pages server cannot access private repositories.

Use the https:// read-only URL for your submodules, including nested submodules. 您可以在 .gitmodules 文件中进行此更改。

延伸阅读

问问别人

找不到要找的内容?

联系我们