Skip to content

Commit 92178bf

Browse files
authored
Merge pull request #1756 from phil-blain/sub-update-remote
Submodules: update `git submodule update --remote` behaviour
2 parents 8d93460 + 65b4464 commit 92178bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ From https://github.com/chaconinc/DbConnector
262262
Submodule path 'DbConnector': checked out 'd0354fc054692d3906c85c3af05ddce39a1c0644'
263263
----
264264

265-
This command will by default assume that you want to update the checkout to the `master` branch of the submodule repository.
265+
This command will by default assume that you want to update the checkout to the default branch of the remote submodule repository (the one pointed to by `HEAD` on the remote).
266266
You can, however, set this to something different if you want.
267267
For example, if you want to have the DbConnector submodule track that repository's "`stable`" branch, you can set it in either your `.gitmodules` file (so everyone else also tracks it), or just in your local `.git/config` file.
268268
Let's set it in the `.gitmodules` file:

0 commit comments

Comments
 (0)