如何在EGit中使用子模块 [英] How to use Submodules with EGit
问题描述
用于Git的Eclipse Team Provider可以工作,但是当我使用syncize时,我看不到子模块的任何更改.
我在命令行上通过diff看到了变化,在乌龟上也看到了变化.
那么,有人知道如何以与子模块同步和提交的方式使用Git和Eclipse吗?
"
从那里,您可以执行两个操作:
在子模块上选择
Update Submodule
操作将检出该子模块在父存储库索引中引用的提交.如果在父存储库的.git/config
文件中所选子模块的配置部分的update字段中配置了合并或变基,则此命令还将执行合并或变基.在子模块上选择
Sync Submodule
操作将根据.gitmodules
文件根目录中的当前值更新该子模块使用的远程URL.父存储库的工作目录.
The Eclipse Team Provider for Git works but i do not see any changes for submodules when I use synchronize.
I see changes with the diff on the command line and also with tortoise i see the changes.
So, does anyone know ho to use Git and Eclipse in a way that synchronize and commit works with submodules?
The "Working with Submodules" section shows the submodules in the Git Repositories view:
From there, you have access to two actions:
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.
这篇关于如何在EGit中使用子模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!