mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-10-31 08:17:59 +01:00
24 lines
535 B
Markdown
24 lines
535 B
Markdown
# git clone
|
|
|
|
> Clone an existing repository.
|
|
> Homepage: <https://git-scm.com/docs/git-clone>.
|
|
|
|
- Clone an existing repository:
|
|
|
|
`git clone {{remote_repository_location}}`
|
|
|
|
- Clone an existing repository and its submodules:
|
|
|
|
`git clone --recursive {{remote_repository_location}}`
|
|
|
|
- For cloning from the local machine:
|
|
|
|
`git clone -l`
|
|
|
|
- Do it quietly:
|
|
|
|
`git clone -q`
|
|
|
|
- Clone an existing repository, and truncate to the specified number of revisions, save your time mostly:
|
|
|
|
`git clone --depth {{10}} {{remote_repository_location}}`
|