|
@@ -7,6 +7,10 @@
|
|
|
|
|
|
`git clone {{remote_repository_location}}`
|
|
`git clone {{remote_repository_location}}`
|
|
|
|
|
|
|
|
+- Clone an existing repository into a specific directory:
|
|
|
|
+
|
|
|
|
+`git clone {{remote_repository_location}} {{path/to/directory}}`
|
|
|
|
+
|
|
- Clone an existing repository and its submodules:
|
|
- Clone an existing repository and its submodules:
|
|
|
|
|
|
`git clone --recursive {{remote_repository_location}}`
|
|
`git clone --recursive {{remote_repository_location}}`
|
|
@@ -22,3 +26,7 @@
|
|
- Clone an existing repository only fetching the 10 most recent commits on the default branch (useful to save time):
|
|
- 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}}`
|
|
`git clone --depth {{10}} {{remote_repository_location}}`
|
|
|
|
+
|
|
|
|
+- Clone an existing repository only fetching a specific branch:
|
|
|
|
+
|
|
|
|
+`git clone --branch {{name}} --single-branch {{remote_repository_location}}`
|