2015-10-22 10:31:52 +03:00
|
|
|
# git clone
|
2014-03-09 16:20:13 +04:00
|
|
|
|
2016-01-07 20:31:27 +03:00
|
|
|
> Clone an existing repository.
|
2014-03-09 16:20:13 +04:00
|
|
|
|
2016-01-07 20:31:27 +03:00
|
|
|
- Clone an existing repository:
|
2014-03-09 16:20:13 +04:00
|
|
|
|
|
|
|
`git clone {{REMOTE-REPOSITORY-LOCATION}}`
|
|
|
|
|
2016-01-07 20:31:27 +03:00
|
|
|
- For cloning from the local machine:
|
2014-03-09 16:20:13 +04:00
|
|
|
|
|
|
|
`git clone -l`
|
|
|
|
|
2016-01-07 20:31:27 +03:00
|
|
|
- Do it quietly:
|
2014-03-09 16:20:13 +04:00
|
|
|
|
2015-10-22 10:31:52 +03:00
|
|
|
`git clone -q`
|
2015-12-25 10:21:32 +03:00
|
|
|
|
2016-01-07 20:31:27 +03:00
|
|
|
- Clone an existing repository, and truncate to the specified number of revisions, save your time mostly:
|
2015-12-25 10:21:32 +03:00
|
|
|
|
|
|
|
`git clone --depth 10 {{REMOTE-REPOSITORY-LOCATION}}`
|