tldr/pages/common/git-clone.md

20 lines
373 B
Markdown
Raw Normal View History

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