Skip to content

Commit 57f22bf

Browse files
stefanbellergitster
authored andcommitted
Documentation/checkout: clarify submodule HEADs to be detached
Signed-off-by: Stefan Beller <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 3ef2538 commit 57f22bf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Documentation/git-checkout.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,8 @@ section of linkgit:git-add[1] to learn how to operate the `--patch` mode.
262262
local modifications in a submodule would be overwritten the checkout
263263
will fail unless `-f` is used. If nothing (or --no-recurse-submodules)
264264
is used, the work trees of submodules will not be updated.
265+
Just like linkgit:git-submodule[1], this will detach the
266+
submodules HEAD.
265267

266268
<branch>::
267269
Branch to checkout; if it refers to a branch (i.e., a name that,

0 commit comments

Comments
 (0)