summaryrefslogtreecommitdiffstats
path: root/git-clone.txt
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2012-01-29 14:20:19 -0800
committerJunio C Hamano <gitster@pobox.com>2012-01-29 14:20:19 -0800
commitb5be052f1ae8d6d1505d21488ee51b843fbadb25 (patch)
tree64346d994e49f70835d8eed00af5633c6d1938f2 /git-clone.txt
parent12bf4714f640e04427236d38d4760ec79d925334 (diff)
downloadgit-htmldocs-b5be052f1ae8d6d1505d21488ee51b843fbadb25.tar.gz
Autogenerated HTML docs for v1.7.9-48-g85da4d
Diffstat (limited to 'git-clone.txt')
-rw-r--r--git-clone.txt11
1 files changed, 10 insertions, 1 deletions
diff --git a/git-clone.txt b/git-clone.txt
index 4b8b26b75..0931a3e39 100644
--- a/git-clone.txt
+++ b/git-clone.txt
@@ -13,7 +13,8 @@ SYNOPSIS
[-l] [-s] [--no-hardlinks] [-q] [-n] [--bare] [--mirror]
[-o <name>] [-b <name>] [-u <upload-pack>] [--reference <repository>]
[--separate-git-dir <git dir>]
- [--depth <depth>] [--recursive|--recurse-submodules] [--] <repository>
+ [--depth <depth>] [--[no-]single-branch]
+ [--recursive|--recurse-submodules] [--] <repository>
[<directory>]
DESCRIPTION
@@ -179,6 +180,14 @@ objects from the source repository into a pack in the cloned repository.
with a long history, and would want to send in fixes
as patches.
+--single-branch::
+ Clone only the history leading to the tip of a single branch,
+ either specified by the `--branch` option or the primary
+ branch remote's `HEAD` points at. When creating a shallow
+ clone with the `--depth` option, this is the default, unless
+ `--no-single-branch` is given to fetch the histories near the
+ tips of all branches.
+
--recursive::
--recurse-submodules::
After the clone is created, initialize all submodules within,