X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=git-clone.html;h=eade541c2e5c2ca92240007906f9c7b014efab0d;hb=02d6fa5ce12d061b1c86f1b76d7bdac8c57e6f0c;hp=f83caa1878c5cd33dd274e2ac3e8eb9c64152ed0;hpb=1a4e841b439ba014b365999c3a6b9e2be3740bd8;p=git.git diff --git a/git-clone.html b/git-clone.html index f83caa18..eade541c 100644 --- a/git-clone.html +++ b/git-clone.html @@ -272,7 +272,9 @@ git-clone(1) Manual Page

SYNOPSIS

-

git-clone [-l [-s]] [-q] [-n] [-o <name>] [-u <upload-pack>] <repository> [<directory>]

+
+
git-clone [-l [-s]] [-q] [-n] [--naked] [-o <name>] [-u <upload-pack>] + <repository> [<directory>]

DESCRIPTION

@@ -347,6 +349,17 @@ branch you are currently working on. Remote branches other than

+--naked +
+
+

+ Make a naked GIT repository. That is, instead of + creating <directory> and placing the administrative + files in <directory>/.git, make the <directory> + itself the $GIT_DIR. This implies -n option. +

+
+
-o <name>
@@ -418,6 +431,25 @@ $ cd copy $ git show-branch
+
+Create a naked repository to publish your changes to the public +
+
+
+
+
$ git clone --naked -l /home/proj/.git /pub/scm/proj.git
+
+
+
+Create a repository on the kernel.org machine that borrows from Linus +
+
+
+
+
$ git clone --naked -l -s /pub/scm/.../torvalds/linux-2.6.git \
+    /pub/scm/.../me/subsys-2.6.git
+
+

Author

@@ -434,7 +466,7 @@ $ git show-branch