Pushing all submodules recursively

前端 未结 4 1807
终归单人心
终归单人心 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:20

    You can use git submodule foreach to run any desired command on each submodule, e.g.

    git submodule foreach git push origin master
    

    See: man git-submodule.

提交回复
热议问题