Autogenerated man pages for v1.1.2-gd425
[git.git] / man1 / git-clone.1
index 1d9bfcb..bd5dee9 100755 (executable)
@@ -23,7 +23,7 @@ git-clone \- Clones a repository.
 .SH "SYNOPSIS"
 
 .nf
-git\-clone [\-l [\-s]] [\-q] [\-n] [\-o <name>] [\-u <upload\-pack>]
+git\-clone [\-l [\-s]] [\-q] [\-n] [\-\-naked] [\-o <name>] [\-u <upload\-pack>]
           <repository> [<directory>]
 .fi
 
@@ -61,6 +61,10 @@ Operate quietly\&. This flag is passed to "rsync" and "git\-clone\-pack" command
 No checkout of HEAD is performed after the clone is complete\&.
 
 .TP
+\-\-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\&.
+
+.TP
 \-o <name>
 Instead of using the branch name origin to keep track of the upstream repository, use <name> instead\&. Note that the shorthand name stored in remotes/origin is not affected, but the local branch name to pull the remote master branch into is\&.
 
@@ -92,6 +96,17 @@ Make a local clone that borrows from the current directory, without checking thi
 $ git clone \-l \-s \-n \&. \&.\&./copy
 $ cd copy
 $ git show\-branch
+.TP
+Create a naked repository to publish your changes to the public
+
+.IP
+$ git clone \-\-naked \-l /home/proj/\&.git /pub/scm/proj\&.git
+.TP
+Create a repository on the kernel\&.org machine that borrows from Linus
+
+.IP
+$ git clone \-\-naked \-l \-s /pub/scm/\&.\&.\&./torvalds/linux\-2\&.6\&.git \\
+    /pub/scm/\&.\&.\&./me/subsys\-2\&.6\&.git
 .SH "AUTHOR"