summaryrefslogtreecommitdiffstats
path: root/git-clone.txt
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.txt
parent353c3a97e8c7c513731a55dd3a01945eebc7a9d1 (diff)
downloadgit-htmldocs-5102d9a5a33904cdbdb2ce747ae0e9e484c8464f.tar.gz
Autogenerated HTML docs for v1.4.4.2-gdb98
Diffstat (limited to 'git-clone.txt')
-rw-r--r--git-clone.txt25
1 files changed, 12 insertions, 13 deletions
diff --git a/git-clone.txt b/git-clone.txt
index d5efa00de..985043fac 100644
--- a/git-clone.txt
+++ b/git-clone.txt
@@ -16,22 +16,21 @@ SYNOPSIS
DESCRIPTION
-----------
-Clones a repository into a newly created directory. All remote
-branch heads are copied under `$GIT_DIR/refs/heads/`, except
-that the remote `master` is also copied to `origin` branch.
-In addition, `$GIT_DIR/remotes/origin` file is set up to have
-this line:
+Clones a repository into a newly created directory, creates
+remote-tracking branches for each branch in the cloned repository
+(visible using `git branch -r`), and creates and checks out a master
+branch equal to the cloned repository's master branch.
- Pull: master:origin
-
-This is to help the typical workflow of working off of the
-remote `master` branch. Every time `git pull` without argument
-is run, the progress on the remote `master` branch is tracked by
-copying it into the local `origin` branch, and merged into the
-branch you are currently working on. Remote branches other than
-`master` are also added there to be tracked.
+After the clone, a plain `git fetch` without arguments will update
+all the remote-tracking branches, and a `git pull` without
+arguments will in addition merge the remote master branch into the
+current branch.
+This default configuration is achieved by creating references to
+the remote branch heads under `$GIT_DIR/refs/remotes/origin` and
+by initializing `remote.origin.url` and `remote.origin.fetch`
+configuration variables.
OPTIONS
-------