Recursive Git push/pull?

后端 未结 5 1763
迷失自我
迷失自我 2021-02-02 10:21

I have a git repository that contains other git repositories. Are there commands that recursively push and/or pull for not only the meta-repository but the sub-repositories?

5条回答
  •  南旧
    南旧 (楼主)
    2021-02-02 10:57

    I needed this a while back and made a cli available through npm. https://github.com/kenglxn/gitr/blob/master/README.md

    Just do "npm install -g gitr" and then you can do any git command recursively by using gitr.

提交回复
热议问题