我只是不理解 Git 的帮助页面。那么会发生什么或有什么区别呢?
假设我有一个带有子模块 B 的 Git 项目 A。子模块 B 又有一个子模块 C。克隆仓库后,A 指向 B 的特定提交。而 B 又指向 C 的特定提交。
如果我在 A 中,通过以下命令进入 B:
cd B
现在我打字。
git submodule update --remote
或者
git submodule update
有什么区别吗?假设远程服务器对A、B和C进行了更改。
我猜使用"git submodule update --remote"会保持对特定版本C的引用。如果不使用--remote
,会更新到最新版本的C吗?
git help submodule
中没有。 - Cédric Van Rompay