summaryrefslogtreecommitdiffstats
path: root/git-clone.html
diff options
context:
space:
mode:
authorJunio C Hamano <junio@hera.kernel.org>2006-12-08 07:23:46 +0000
committerJunio C Hamano <junio@hera.kernel.org>2006-12-08 07:23:46 +0000
commit5102d9a5a33904cdbdb2ce747ae0e9e484c8464f (patch)
tree8de8a47915f35eef0f86d2a26d07e9a7c0cd6948 /git-clone.html
parent353c3a97e8c7c513731a55dd3a01945eebc7a9d1 (diff)
downloadgit-htmldocs-5102d9a5a33904cdbdb2ce747ae0e9e484c8464f.tar.gz
Autogenerated HTML docs for v1.4.4.2-gdb98
Diffstat (limited to 'git-clone.html')
-rw-r--r--git-clone.html29
1 files changed, 13 insertions, 16 deletions
diff --git a/git-clone.html b/git-clone.html
index 0ddb33b64..d6f6c573f 100644
--- a/git-clone.html
+++ b/git-clone.html
@@ -280,21 +280,18 @@ git-clone(1) Manual Page
</div>
<h2>DESCRIPTION</h2>
<div class="sectionbody">
-<p>Clones a repository into a newly created directory. All remote
-branch heads are copied under <tt>$GIT_DIR/refs/heads/</tt>, except
-that the remote <tt>master</tt> is also copied to <tt>origin</tt> branch.</p>
-<p>In addition, <tt>$GIT_DIR/remotes/origin</tt> file is set up to have
-this line:</p>
-<div class="literalblock">
-<div class="content">
-<pre><tt>Pull: master:origin</tt></pre>
-</div></div>
-<p>This is to help the typical workflow of working off of the
-remote <tt>master</tt> branch. Every time <tt>git pull</tt> without argument
-is run, the progress on the remote <tt>master</tt> branch is tracked by
-copying it into the local <tt>origin</tt> branch, and merged into the
-branch you are currently working on. Remote branches other than
-<tt>master</tt> are also added there to be tracked.</p>
+<p>Clones a repository into a newly created directory, creates
+remote-tracking branches for each branch in the cloned repository
+(visible using <tt>git branch -r</tt>), and creates and checks out a master
+branch equal to the cloned repository's master branch.</p>
+<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 branch.</p>
+<p>This default configuration is achieved by creating references to
+the remote branch heads under <tt>$GIT_DIR/refs/remotes/origin</tt> and
+by initializing <tt>remote.origin.url</tt> and <tt>remote.origin.fetch</tt>
+configuration variables.</p>
</div>
<h2>OPTIONS</h2>
<div class="sectionbody">
@@ -536,7 +533,7 @@ Create a repository on the kernel.org machine that borrows from Linus
</div>
<div id="footer">
<div id="footer-text">
-Last updated 05-Dec-2006 01:11:37 UTC
+Last updated 08-Dec-2006 07:23:38 UTC
</div>
</div>
</body>