From: Junio C Hamano Date: Fri, 8 Dec 2006 07:23:51 +0000 (+0000) Subject: Autogenerated man pages for v1.4.4.2-gdb98 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=88ec17fea2cc2caf3cc3dd34dca190757915969f;p=git.git Autogenerated man pages for v1.4.4.2-gdb98 --- diff --git a/man1/git-clone.1 b/man1/git-clone.1 index 1a18a0e6e..0f226a0b4 100755 --- a/man1/git-clone.1 +++ b/man1/git-clone.1 @@ -2,7 +2,7 @@ .\" It was generated using the DocBook XSL Stylesheets (version 1.69.1). .\" Instead of manually editing it, you probably should edit the DocBook XML .\" source for it and then use the DocBook XSL Stylesheets to regenerate it. -.TH "GIT\-CLONE" "1" "12/05/2006" "" "" +.TH "GIT\-CLONE" "1" "12/08/2006" "" "" .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) @@ -18,15 +18,11 @@ git\-clone \- Clones a repository [] .fi .SH "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. +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. .sp -In addition, $GIT_DIR/remotes/origin file is set up to have this line: +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. .sp -.sp -.nf -Pull: master:origin -.fi -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. +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. .sp .SH "OPTIONS" .TP