Pushing all submodules recursively

前端 未结 4 1804
终归单人心
终归单人心 2021-02-06 05:53

I wrote the below script to push all the changes in the workspace, both in the submodules and the superproject. However, it sounds a little odd that, it is this complex to do wh

4条回答
  •  攒了一身酷
    2021-02-06 06:23

    git1.7.11 ([ANNOUNCE] Git 1.7.11.rc1) mentions:

    "git push --recurse-submodules" learned to optionally look into the histories of submodules bound to the superproject and push them out.

    So you can use:

    git push --recurse-submodules=on-demand
    

提交回复
热议问题