diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-05-16 13:30:56 +0900 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-05-16 13:30:56 +0900 |
commit | d5176901f5976e3785f89ec1db1081d43ddfe110 (patch) | |
tree | 17fd99897d6726d424cedd1166a8301b77b34bbc /git-clone.txt | |
parent | 919d24f4f64cc04a733a4e52066053944d3992b4 (diff) | |
download | git-htmldocs-d5176901f5976e3785f89ec1db1081d43ddfe110.tar.gz |
Autogenerated HTML docs for v2.13.0-67-g10c78
Diffstat (limited to 'git-clone.txt')
-rw-r--r-- | git-clone.txt | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/git-clone.txt b/git-clone.txt index 30052cce4..83c8e9b39 100644 --- a/git-clone.txt +++ b/git-clone.txt @@ -13,7 +13,7 @@ SYNOPSIS [-l] [-s] [--no-hardlinks] [-q] [-n] [--bare] [--mirror] [-o <name>] [-b <name>] [-u <upload-pack>] [--reference <repository>] [--dissociate] [--separate-git-dir <git dir>] - [--depth <depth>] [--[no-]single-branch] + [--depth <depth>] [--[no-]single-branch] [--no-tags] [--recurse-submodules] [--[no-]shallow-submodules] [--jobs <n>] [--] <repository> [<directory>] @@ -215,6 +215,18 @@ objects from the source repository into a pack in the cloned repository. branch when `--single-branch` clone was made, no remote-tracking branch is created. +--no-tags:: + Don't clone any tags, and set + `remote.<remote>.tagOpt=--no-tags` in the config, ensuring + that future `git pull` and `git fetch` operations won't follow + any tags. Subsequent explicit tag fetches will still work, + (see linkgit:git-fetch[1]). ++ +Can be used in conjunction with `--single-branch` to clone and +maintain a branch with no references other than a single cloned +branch. This is useful e.g. to maintain minimal clones of the default +branch of some repository for search indexing. + --recurse-submodules[=<pathspec]:: After the clone is created, initialize and clone submodules within based on the provided pathspec. If no pathspec is |