如何在 EGit 中使用子模块

How to use Submodules with EGit

Git 的 Eclipse Team Provider 可以工作,但是当我使用同步时我没有看到子模块有任何变化。
我在命令行上看到了 diff 的变化,我也看到了乌龟的变化。

那么,有人知道如何使用 Git 和 Eclipse 来同步和提交子模块吗?

Working with Submodules”部分显示 Git 存储库视图中的子模块:

从那里,您可以执行两个操作:

  • Selecting the Update Submodule action on a submodule will check out the commit referenced in the parent repository's index for that submodule.
    This command will also perform a merge or rebase if that has been configured in the update field for the selected submodule's configuration section in the parent repository's .git/config file.

  • Selecting the Sync Submodule action on a submodule will update the remote URL used by the submodule from the current value in the .gitmodules file at the root of the working directory of the parent repository.