Code

Merge branch 'lh/branch-rename'
[git.git] / Documentation / git-clone.txt
index 4cb42237b559723a0e59ac8e29c78a20304f38d0..985043facab96a29e7cf19df213539312e7b5642 100644 (file)
@@ -11,27 +11,26 @@ SYNOPSIS
 [verse]
 'git-clone' [--template=<template_directory>] [-l [-s]] [-q] [-n] [--bare]
          [-o <name>] [-u <upload-pack>] [--reference <repository>]
-         [--use-separate-remote | --use-immingled-remote] <repository>
+         [--use-separate-remote | --no-separate-remote] <repository>
          [<directory>]
 
 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
 -------
@@ -105,7 +104,7 @@ OPTIONS
        of `$GIT_DIR/refs/heads/`.  Only the local master branch is
        saved in the latter. This is the default.
 
---use-immingled-remote::
+--no-separate-remote::
        Save remotes heads in the same namespace as the local
        heads, `$GIT_DIR/refs/heads/'.  In regular repositories,
        this is a legacy setup git-clone created by default in