How to only update specific git submodules?

后端 未结 5 838
盖世英雄少女心
盖世英雄少女心 2020-12-04 19:08

So, updating all my submodules is done by running

git submodule foreach \'git pull origin master\'

How do I update a specific submo

5条回答
  •  失恋的感觉
    2020-12-04 19:45

    I end up there by searching how to update specific submodule only, which means for me, updating a submodule to the ref pointed by its super-repo. Which is not the question nor the answer but only the title.

    So in a hope of helping some others like me the answer to the question title is :

    git submodule update 
    

    which will put this submodule in the state of the ref commited in the super-repo.

提交回复
热议问题