tldr/pages/common/git-clone.md

20 lines
373 B
Markdown
Raw Normal View History

2015-10-22 10:31:52 +03:00
# git clone
2014-03-09 16:20:13 +04:00
> Clone an existing repository.
2014-03-09 16:20:13 +04:00
- Clone an existing repository:
2014-03-09 16:20:13 +04:00
`git clone {{remote_repository_location}}`
2014-03-09 16:20:13 +04:00
- For cloning from the local machine:
2014-03-09 16:20:13 +04:00
`git clone -l`
- Do it quietly:
2014-03-09 16:20:13 +04:00
2015-10-22 10:31:52 +03:00
`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}}`