问题
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?
回答1:
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.
来源:https://stackoverflow.com/questions/32875334/how-to-use-submodules-with-egit