Easy way to pull latest of all git submodules

前端 未结 19 1914
谎友^
谎友^ 2020-11-22 05:20

We\'re using git submodules to manage a couple of large projects that have dependencies on many other libraries we\'ve developed. Each library is a separate repo brought int

19条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-22 06:02

    I don't know since which version of git this is working, but that's what you're searching for:

    git submodule update --recursive
    

    I use it with git pull to update the root repository, too:

    git pull && git submodule update --recursive
    

提交回复
热议问题