threads / discuss / 36173

git submodule update "checkout" update mode

Subject: git submodule update "checkout" update mode

## tl;dr

One message between Mar 15, 2014 and Mar 15, 2014.

replies: 0people: 1as markdown or json

乙酸鋰· Mar 15, 2014, 16:21 UTC · lore
Hi,
In 2.0.0 release notes (00eda23),
Newly cloned submodule repositories by "git submodule update",
   when the "checkout" update mode is used, will be on a local
   branch instead of on a detached HEAD, just like submodules added
   with "git submodule add".
It is not clear.
1. Is "checkout" update mode the default? (when without any command
line options)
2. Does "merge" update mode checkouts a local branch instead of on a
detached HEAD?

← back to recent threads