Skip to content

Commit 22607a2

Browse files
authored
Merge pull request #646 from rjsenft/reference-recurse-submodules-default-config
Reference the 'push.recurseSubmodules' config in the section on pushing submodule changes
2 parents 92a3b41 + 237a39d commit 22607a2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

book/07-git-tools/sections/submodules.asc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -518,6 +518,7 @@ to push them to a remote.
518518

519519
As you can see, it also gives us some helpful advice on what we might want to do next.
520520
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`.
521522

522523
The other option is to use the ``on-demand'' value, which will try to do this for you.
523524

@@ -543,6 +544,7 @@ To https://github.com/chaconinc/MainProject
543544

544545
As you can see there, Git went into the DbConnector module and pushed it before pushing the main project.
545546
If that submodule push fails for some reason, the main project push will also fail.
547+
You can make this behavior the default by doing `git config push.recurseSubmodules on-demand`.
546548

547549
===== Merging Submodule Changes
548550

0 commit comments

Comments
 (0)