这是因为06bf4ad1db(push:propagate remote和refspec with --recurse-submodules,2017-04-05),它...
So far, when we’ve run thegit submodule updatecommand to fetch changes from the submodule repositories, Git would get the changes and update the files in the subdirectory but will leave the sub-repository in what’s called a “detached HEAD” state. This means that there is no local workin...
当我用选项--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)递归,但有一些条件。
使用 no 或 --no-recurse-submodules 可以覆盖配置变量 push.recurseSubmodules,当不需要递归子模块时使用。 使用on-demand 或 only 时,如果子模块具有“push.recurseSubmodules={on-demand,only}”或“submodule.recurse”配置,则会进行进一步的递归。在这种情况下,“only”被视为“on-demand”。 --[no-]...
git push--recurse-submodules=check # 在主模块 push 之前,自动 push 子模块,包括嵌套子模块 git push--recurse-submodules=on-demand 最后 更详细的信息请查看: git submodule 文档 https://git-scm.com/book/en/v2/Git-Tools-Submodules 上述文章表述或者在实践中有任何问题,欢迎联系我。
我们首先将一个已存在的 Git 仓库添加为正在工作的仓库的子模块。 你可以通过在git submodule add命令后面加上想要跟踪的项目 URL 来添加新的子模块。 在本例中,我们将会添加一个名为 “DbConnector” 的库。 $git submodule add https://github.com/chaconinc/DbConnectorCloning into 'DbConnector'... ...
git push 命令接受可以设置为**check** 或on-demand的--recurse-submodules参数。 如果任何提交的子模块改动没有推送那么check选项会直接使 push 操作失败。 提交主项目时自动检测子模块是否有未提交的改动 git push --recurse-submodules=check 提交主项目时,尝试自动推送已改动的子模块 ...
$ git push--recurse-submodules=checkThe following submodule paths contain changes that can not be found on any remote: DbConnector Please try git push --recurse-submodules=on-demand or cd to the path and use git push to push them to a remote. ...
git push --recurse-submodules=on-demand orcdto the path and use git push to push them to a remote. 我们可以进入到submodule所在目录来执行 git push来提交submodule的更新。或者添加参数--recurse-submodules=on-demand来提交。方法2先push submodule中的更改,再push main project中的更改,若前一步失败,后...
will also be aborted and exit with non-zero status. Ifonlyis used all submodules will be pushed while the superproject is left unpushed. A value ofnoor using--no-recurse-submodulescan be used to override the push.recurseSubmodules configuration variable when no submodule recursion is required...