gpt4 book ai didi

git - 公共(public)仓库中的私有(private)文件夹(子模块)

转载 作者:IT王子 更新时间:2023-10-29 00:53:54 25 4
gpt4 key购买 nike

我有一个公共(public)存储库。在其中我想使用一个私有(private)的子模块。如果我将此子模块包含到我的公共(public)存储库中,每个人都可以看到该子模块的内容吗?

最佳答案

否:在公共(public)存储库中包含子模块意味着将其 URL 记录在公共(public) .gitmodules 文件中。

通过您的存储库的递归克隆,该 URL 上的存储库将不会比它本身更容易访问。

这就是为什么,例如,使用 submodules with GitHub Pages不可能:

You can only use submodules with GitHub Pages sites that point to public repositories.
Using a submodule that points to a private repository is not possible because the Pages server cannot access private repositories.

关于git - 公共(public)仓库中的私有(private)文件夹(子模块),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37638034/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com