Git submodule update

后端 未结 4 1864
Happy的楠姐
Happy的楠姐 2020-11-21 05:11

I\'m not clear on what the following means (from the Git submodule update documentation):

...will make the submodules HEAD be detached, unless -

4条回答
  •  Happy的楠姐
    2020-11-21 05:51

    To update each submodule, you could invoke the following command (at the root of the repository):

    git submodule -q foreach git pull -q origin master
    

    You can remove the -q option to follow the whole process.

提交回复
热议问题