# git submodule update "checkout" update mode

1 messages from 2014-03-15 to 2014-03-15. Participants: 乙酸鋰.
Thread: https://gitlist.dev/t/36173

## 乙酸鋰, 2014-03-15 16:21

Subject: git submodule update "checkout" update mode
Message-ID: <CAHtLG6SPyDrD8YBpKv6bSvjtzJj8mak4ngF6_3XOPpy4VoXCXg@mail.gmail.com>
URL: https://gitlist.dev/e/CAHtLG6SPyDrD8YBpKv6bSvjtzJj8mak4ngF6_3XOPpy4VoXCXg%40mail.gmail.com

```
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?

```
