Skip to content

Commit a2775c2

Browse files
ebiedermJunio C Hamano
authored andcommitted
[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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent f9d7241 commit a2775c2

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

Documentation/git-clone.txt

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,15 @@ git-clone - Clones a repository.
99

1010
SYNOPSIS
1111
--------
12-
'git clone' [-l] [-u <upload-pack>] [-q] <repository> <directory>
12+
'git clone' [-l [-s]] [-q] [-n] [-u <upload-pack>] <repository> <directory>
1313

1414
DESCRIPTION
1515
-----------
1616
Clones a repository into a newly created directory.
1717

1818
OPTIONS
1919
-------
20+
--local::
2021
-l::
2122
When the repository to clone from is on a local machine,
2223
this flag bypasses normal "git aware" transport
@@ -25,10 +26,22 @@ OPTIONS
2526
The files under .git/objects/ directory are hardlinked
2627
to save space when possible.
2728

29+
--shared::
30+
-s::
31+
When the repository to clone is on the local machine,
32+
instead of using hard links automatically setup
33+
.git/objects/info/alternatives to share the objects
34+
with the source repository
35+
36+
--quiet::
2837
-q::
2938
Operate quietly. This flag is passed to "rsync" and
3039
"git-clone-pack" commands when given.
3140

41+
-n::
42+
No checkout of HEAD is performed after the clone is complete.
43+
44+
--upload-pack <upload-pack>::
3245
-u <upload-pack>::
3346
When given, and the repository to clone from is handled
3447
by 'git-clone-pack', '--exec=<upload-pack>' is passed to

0 commit comments

Comments
 (0)