diff options
author | Junio C Hamano <gitster@pobox.com> | 2012-10-01 13:59:41 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-10-01 13:59:41 -0700 |
commit | 6a8a84871508aff5efeb8ba8fdc725b4e6d871b2 (patch) | |
tree | 9f88103eb266f2168d22a9859f5834dcd564f989 /git-clone.html | |
parent | 9cdfecf16e1f60e1aef2c5bbc4da68035642f66f (diff) | |
download | git-htmldocs-6a8a84871508aff5efeb8ba8fdc725b4e6d871b2.tar.gz |
Autogenerated HTML docs for v1.8.0-rc0
Diffstat (limited to 'git-clone.html')
-rw-r--r-- | git-clone.html | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/git-clone.html b/git-clone.html index d81627ec5..cf1183a05 100644 --- a/git-clone.html +++ b/git-clone.html @@ -603,7 +603,8 @@ currently active branch.</p></div> <div class="paragraph"><p>After the clone, a plain <tt>git fetch</tt> without arguments will update
all the remote-tracking branches, and a <tt>git pull</tt> without
arguments will in addition merge the remote master branch into the
-current master branch, if any.</p></div>
+current master branch, if any (this is untrue when "--single-branch"
+is given; see below).</p></div>
<div class="paragraph"><p>This default configuration is achieved by creating references to
the remote branch heads under <tt>refs/remotes/origin</tt> and
by initializing <tt>remote.origin.url</tt> and <tt>remote.origin.fetch</tt>
@@ -792,9 +793,10 @@ objects from the source repository into a pack in the cloned repository.</p></di <p>
Instead of pointing the newly created HEAD to the branch pointed
to by the cloned repository’s HEAD, point to <tt><name></tt> branch
- instead. <tt>--branch</tt> can also take tags and treat them like
- detached HEAD. In a non-bare repository, this is the branch
- that will be checked out.
+ instead. In a non-bare repository, this is the branch that will
+ be checked out.
+ <tt>--branch</tt> can also take tags and detaches the HEAD at that commit
+ in the resulting repository.
</p>
</dd>
<dt class="hdlist1">
@@ -862,6 +864,11 @@ objects from the source repository into a pack in the cloned repository.</p></di clone with the <tt>--depth</tt> option, this is the default, unless
<tt>--no-single-branch</tt> is given to fetch the histories near the
tips of all branches.
+ 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
+ branch when <tt>--single-branch</tt> clone was made, no remote tracking
+ branch is created.
</p>
</dd>
<dt class="hdlist1">
@@ -1108,7 +1115,7 @@ Create a repository on the kernel.org machine that borrows from Linus: <div id="footnotes"><hr /></div>
<div id="footer">
<div id="footer-text">
-Last updated 2012-06-22 15:42:03 PDT
+Last updated 2012-10-01 13:59:22 PDT
</div>
</div>
</body>
|