summaryrefslogtreecommitdiffstats
path: root/git-clone.html
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-01-20 15:23:19 -0800
committerJunio C Hamano <gitster@pobox.com>2016-01-20 15:23:19 -0800
commit4e6ba27c956c6c9b43e7196f210796bd1db478a9 (patch)
treeee957d01ddae17e1dcd2579467b90512aa263bb0 /git-clone.html
parenta7da1ba8da6521497f33dce9b3d2a46a857172cc (diff)
downloadgit-htmldocs-4e6ba27c956c6c9b43e7196f210796bd1db478a9.tar.gz
Autogenerated HTML docs for v2.7.0-75-g3ee1e
Diffstat (limited to 'git-clone.html')
-rw-r--r--git-clone.html11
1 files changed, 5 insertions, 6 deletions
diff --git a/git-clone.html b/git-clone.html
index 83a8eef92..406b92f10 100644
--- a/git-clone.html
+++ b/git-clone.html
@@ -1029,7 +1029,9 @@ objects from the source repository into a pack in the cloned repository.</p></di
<dd>
<p>
Create a <em>shallow</em> clone with a history truncated to the
- specified number of revisions.
+ specified number of commits. Implies <code>--single-branch</code> unless
+ <code>--no-single-branch</code> is given to fetch the histories near the
+ tips of all branches.
</p>
</dd>
<dt class="hdlist1">
@@ -1039,10 +1041,7 @@ objects from the source repository into a pack in the cloned repository.</p></di
<p>
Clone only the history leading to the tip of a single branch,
either specified by the <code>--branch</code> option or the primary
- branch remote&#8217;s <code>HEAD</code> points at. When creating a shallow
- clone with the <code>--depth</code> option, this is the default, unless
- <code>--no-single-branch</code> is given to fetch the histories near the
- tips of all branches.
+ branch remote&#8217;s <code>HEAD</code> points at.
Further fetches into the resulting repository will only update the
remote-tracking branch for the branch this option was used for the
initial cloning. If the HEAD at the remote did not point at any
@@ -1301,7 +1300,7 @@ Create a bare repository to publish your changes to the public:
<div id="footnotes"><hr /></div>
<div id="footer">
<div id="footer-text">
-Last updated 2015-10-30 14:57:17 PDT
+Last updated 2016-01-20 15:22:32 PST
</div>
</div>
</body>