How to use Submodules with EGit

不羁岁月 提交于 2021-02-08 05:21:55

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!