1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 17:42:07 +02:00
tldr/pages/common/git-clone.md
2019-10-27 12:07:00 +01:00

24 lines
604 B
Markdown

# git clone
> Clone an existing repository.
> More information: <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}}`
- Clone a local repository:
`git clone -l {{path/to/local/repository}}`
- Clone quietly:
`git clone -q {{remote_repository_location}}`
- Clone an existing repository only fetching the 10 most recent commits on the default branch (useful to save time):
`git clone --depth {{10}} {{remote_repository_location}}`