aboutsummaryrefslogtreecommitdiff
path: root/Documentation/git-clone.txt
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2005-10-02 13:42:57 -0600
committerJunio C Hamano <junkio@cox.net>2005-10-02 16:06:08 -0700
commita2775c2a410be4bec1e29ae78bccd3247829e2be (patch)
treef4c3fc309447a1d9f42a1706c4b5670531645a2c /Documentation/git-clone.txt
parentf9d72413bcbf33ced45f12e17ef156abd73963f6 (diff)
downloadgit-a2775c2a410be4bec1e29ae78bccd3247829e2be.tar.gz
git-a2775c2a410be4bec1e29ae78bccd3247829e2be.tar.xz
[PATCH] Update git-clone documentation
The documentation for git-clone is behind the actual command. I have been getting tired of reading the shell script to see what the arguments are so here is an update of the actual documentation. Signed-off-by: Eric Biederman <ebiederman@xmission.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'Documentation/git-clone.txt')
-rw-r--r--Documentation/git-clone.txt15
1 files changed, 14 insertions, 1 deletions
diff --git a/Documentation/git-clone.txt b/Documentation/git-clone.txt
index bd53ef430..7d713c738 100644
--- a/Documentation/git-clone.txt
+++ b/Documentation/git-clone.txt
@@ -9,7 +9,7 @@ git-clone - Clones a repository.
SYNOPSIS
--------
-'git clone' [-l] [-u <upload-pack>] [-q] <repository> <directory>
+'git clone' [-l [-s]] [-q] [-n] [-u <upload-pack>] <repository> <directory>
DESCRIPTION
-----------
@@ -17,6 +17,7 @@ Clones a repository into a newly created directory.
OPTIONS
-------
+--local::
-l::
When the repository to clone from is on a local machine,
this flag bypasses normal "git aware" transport
@@ -25,10 +26,22 @@ OPTIONS
The files under .git/objects/ directory are hardlinked
to save space when possible.
+--shared::
+-s::
+ When the repository to clone is on the local machine,
+ instead of using hard links automatically setup
+ .git/objects/info/alternatives to share the objects
+ with the source repository
+
+--quiet::
-q::
Operate quietly. This flag is passed to "rsync" and
"git-clone-pack" commands when given.
+-n::
+ No checkout of HEAD is performed after the clone is complete.
+
+--upload-pack <upload-pack>::
-u <upload-pack>::
When given, and the repository to clone from is handled
by 'git-clone-pack', '--exec=<upload-pack>' is passed to