# missing git documentation for "git clone --recursive"

3 messages from 2026-02-09 to 2026-02-09. Participants: markusd112@web.de, Junio C Hamano, D. Ben Knoble.
Thread: https://gitlist.dev/t/64963

## markusd112@web.de, 2026-02-09 20:34

Subject: missing git documentation for "git clone --recursive"
Message-ID: <ae4cb197-1edc-44c4-afbb-bbb24df509e8@web.de>
URL: https://gitlist.dev/e/ae4cb197-1edc-44c4-afbb-bbb24df509e8%40web.de

```
Hi,

I am missing the argument "--recursive" for the git clone command in the 
git-clone documentation

https://git-scm.com/docs/git-clone

Is this --recursive argument outdated? In some projects there is the 
following command in the documentation that clones the repository 
including init and update submodules:

git clone --recursive (url)

In the git documentation only "--recurse-submodules" is mentioned as 
allowed argument, but not "--recursive".

Thanks

Markus


```

## Junio C Hamano, 2026-02-09 22:01

Subject: Re: missing git documentation for "git clone --recursive"
Message-ID: <xmqq4inp4lv3.fsf@gitster.g>
URL: https://gitlist.dev/e/xmqq4inp4lv3.fsf%40gitster.g
In-Reply-To: <ae4cb197-1edc-44c4-afbb-bbb24df509e8@web.de>

```
markusd112@web.de writes:

> In the git documentation only "--recurse-submodules" is mentioned as 
> allowed argument, but not "--recursive".

Correct.  Do not use it.

In the early days, we mistakenly used "--recursive" to mean
"--recurse-submodules".  

After we realized the mistake, we would have preferred if we could
remove it right away, but in order to avoid breaking existing users,
the command is taught to still notice "--recursive" and behave the
same as "--recurse-submodules", but stopped advertising the former
in "git clone -h" and "git clone --help".

This reminds me.  Perhaps we would want to perform an audit for
such OPT_HIDDEN aliases and remove them at the Git 3.0 boundary
(this needs a separate thread to discuss)?


```

## D. Ben Knoble, 2026-02-09 22:03

Subject: Re: missing git documentation for "git clone --recursive"
Message-ID: <CALnO6CCMPCMdhMoei=bPSWC47n=+Uw_qP3joX8DPitUTcwNyaA@mail.gmail.com>
URL: https://gitlist.dev/e/CALnO6CCMPCMdhMoei%3DbPSWC47n%3D%2BUw_qP3joX8DPitUTcwNyaA%40mail.gmail.com
In-Reply-To: <ae4cb197-1edc-44c4-afbb-bbb24df509e8@web.de>

```
On Mon, Feb 9, 2026 at 3:35 PM <markusd112@web.de> wrote:
>
> Hi,
>
> I am missing the argument "--recursive" for the git clone command in the
> git-clone documentation
>
> https://git-scm.com/docs/git-clone
>
> Is this --recursive argument outdated? In some projects there is the
> following command in the documentation that clones the repository
> including init and update submodules:
>
> git clone --recursive (url)
>
> In the git documentation only "--recurse-submodules" is mentioned as
> allowed argument, but not "--recursive".
>
> Thanks
>
> Markus

The latter is a (now-undocumented) alias for the former. See
5c387428f1 (parse-options: don't emit "ambiguous option" for aliases,
2019-04-29) and referenced commits (like ccdd3da652 (clone: Add the
--recurse-submodules option as alias for --recursive, 2010-11-04)) for
some details.

-- 
D. Ben Knoble

```
