(created/git2cpp/clone.md)=
# git2cpp clone

```{parsed-literal}
Clone a directory into a new repository


git2cpp clone [OPTIONS] &lt;repository&gt; [&lt;directory&gt;]


POSITIONALS:
&nbsp; &lt;repository&gt; TEXT REQUIRED  The (possibly remote) repository to clone from.
&nbsp; &lt;directory&gt; TEXT            The name of a new directory to clone into.

OPTIONS:
&nbsp; -h,     --help              Print this help message and exit
&nbsp;         --depth UINT        Create a shallow clone of that depth.
&nbsp;         --bare              Create a bare Git repository.
```
