diff options
author | Junio C Hamano <gitster@pobox.com> | 2016-05-06 15:27:09 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-05-06 15:27:09 -0700 |
commit | ccdabcae204ead708ad13194edd370770437ee5b (patch) | |
tree | 3dcc122844c6b95c9469fd3b169a5966ad25b684 /git-clone.txt | |
parent | 6c980140719aead9ebe164008949c20bee3b38a0 (diff) | |
download | git-htmldocs-ccdabcae204ead708ad13194edd370770437ee5b.tar.gz |
Autogenerated HTML docs for v2.8.2-372-g63a350
Diffstat (limited to 'git-clone.txt')
-rw-r--r-- | git-clone.txt | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/git-clone.txt b/git-clone.txt index 45d74be29..1b15cd7b1 100644 --- a/git-clone.txt +++ b/git-clone.txt @@ -14,8 +14,8 @@ SYNOPSIS [-o <name>] [-b <name>] [-u <upload-pack>] [--reference <repository>] [--dissociate] [--separate-git-dir <git dir>] [--depth <depth>] [--[no-]single-branch] - [--recursive | --recurse-submodules] [--jobs <n>] [--] <repository> - [<directory>] + [--recursive | --recurse-submodules] [--[no-]shallow-submodules] + [--jobs <n>] [--] <repository> [<directory>] DESCRIPTION ----------- @@ -191,7 +191,9 @@ objects from the source repository into a pack in the cloned repository. Create a 'shallow' clone with a history truncated to the specified number of commits. Implies `--single-branch` unless `--no-single-branch` is given to fetch the histories near the - tips of all branches. + tips of all branches. This implies `--shallow-submodules`. If + you want to have a shallow superproject clone, but full submodules, + also pass `--no-shallow-submodules`. --[no-]single-branch:: Clone only the history leading to the tip of a single branch, @@ -212,6 +214,9 @@ objects from the source repository into a pack in the cloned repository. repository does not have a worktree/checkout (i.e. if any of `--no-checkout`/`-n`, `--bare`, or `--mirror` is given) +--[no-]shallow-submodules:: + All submodules which are cloned will be shallow with a depth of 1. + --separate-git-dir=<git dir>:: Instead of placing the cloned repository where it is supposed to be, place the cloned repository at the specified directory, |