Eric W. Biederman  committed a2775c2

[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 <>
Signed-off-by: Junio C Hamano <>

  • Participants
  • Parent commits f9d7241

Comments (0)

Files changed (1)

File Documentation/git-clone.txt

-'git clone' [-l] [-u <upload-pack>] [-q] <repository> <directory>
+'git clone' [-l [-s]] [-q] [-n] [-u <upload-pack>] <repository> <directory>
 	When the repository to clone from is on a local machine,
 	this flag bypasses normal "git aware" transport
 	The files under .git/objects/ directory are hardlinked
 	to save space when possible.
+	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
 	Operate quietly.  This flag is passed to "rsync" and
 	"git-clone-pack" commands when given.
+	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