2015-10-22 08:31:52 +01:00
|
|
|
# git clone
|
2014-03-09 12:20:13 +00:00
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
> Clone an existing repository.
|
2014-03-09 12:20:13 +00:00
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Clone an existing repository:
|
2014-03-09 12:20:13 +00:00
|
|
|
|
2016-09-21 16:35:46 +01:00
|
|
|
`git clone {{remote_repository_location}}`
|
2014-03-09 12:20:13 +00:00
|
|
|
|
2017-12-28 08:10:06 +00:00
|
|
|
- Clone an existing repository and its submodules:
|
|
|
|
|
|
|
|
`git clone --recursive {{remote_repository_location}}`
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- For cloning from the local machine:
|
2014-03-09 12:20:13 +00:00
|
|
|
|
|
|
|
`git clone -l`
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Do it quietly:
|
2014-03-09 12:20:13 +00:00
|
|
|
|
2015-10-22 08:31:52 +01:00
|
|
|
`git clone -q`
|
2015-12-25 07:21:32 +00:00
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Clone an existing repository, and truncate to the specified number of revisions, save your time mostly:
|
2015-12-25 07:21:32 +00:00
|
|
|
|
2017-12-29 06:02:01 +00:00
|
|
|
`git clone --depth {{10}} {{remote_repository_location}}`
|