git push --recurse-submodules = on-demand 递归push

I have the following project structure:

root-project
      |
      |-- A
      |   |
      |   |-- C
      |
      |-- B

 

A和B是根项目的子模块。 C又是项目A的子模块。假设我已经对项目A,B和C进行了更改,将这些更改提交给了相应的索引。之后,我更新对root-project中的A和B的引用,并提交更改。当我用选项--recurse-submodules = on-demand推送root项目的更改时,git会推送项目A,B和root项目的所有提交,但默默忽略提交项目C.我期望它也推动项目C的更改。

 

git version 2.3.3

解决方案 : 更新软件
git push --recurse-submodules = on-demand 

 

将会真正用git 2.14.x / 2.15(Q3 2017)递归,但有一些条件。

 

posted @ 2020-05-16 11:37  QIYUEXIN  阅读(1051)  评论(0编辑  收藏  举报