You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: book/07-git-tools/sections/submodules.asc
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -518,6 +518,7 @@ to push them to a remote.
518
518
519
519
As you can see, it also gives us some helpful advice on what we might want to do next.
520
520
The simple option is to go into each submodule and manually push to the remotes to make sure they're externally available and then try this push again.
521
+
If you want the check behavior to happen for all pushes, you can make this behavior the default by doing `git config push.recurseSubmodules check`.
521
522
522
523
The other option is to use the ``on-demand'' value, which will try to do this for you.
523
524
@@ -543,8 +544,7 @@ To https://github.com/chaconinc/MainProject
543
544
544
545
As you can see there, Git went into the DbConnector module and pushed it before pushing the main project.
545
546
If that submodule push fails for some reason, the main project push will also fail.
546
-
547
-
You can enable these behaviors for all future pushes with the `push.recurseSubmodules` config.
547
+
You can make this behavior the default by doing `git config push.recurseSubmodules on-demand`.
0 commit comments