summaryrefslogtreecommitdiffstats
path: root/git-init.html
diff options
context:
space:
mode:
authorJunio C Hamano <junio@kernel.org>2011-04-02 04:32:29 +0000
committerJunio C Hamano <junio@kernel.org>2011-04-02 04:32:29 +0000
commita03ac8675725e0f73e11b08ca9d7d395d1a16d15 (patch)
treebfaec069d94d13e788e149166c68f4e87773c6d6 /git-init.html
parentf2873fdaeac7a9222349346775417f7325801664 (diff)
downloadgit-htmldocs-a03ac8675725e0f73e11b08ca9d7d395d1a16d15.tar.gz
Autogenerated HTML docs for v1.7.5-rc0-96-gc4b2c
Diffstat (limited to 'git-init.html')
-rw-r--r--git-init.html61
1 files changed, 37 insertions, 24 deletions
diff --git a/git-init.html b/git-init.html
index 614c6560e..d028bcdcd 100644
--- a/git-init.html
+++ b/git-init.html
@@ -414,7 +414,26 @@ git-init(1) Manual Page
</div>
<h2 id="_synopsis">SYNOPSIS</h2>
<div class="sectionbody">
-<div class="paragraph"><p><em>git init</em> [-q | --quiet] [--bare] [--template=&lt;template_directory&gt;] [--shared[=&lt;permissions&gt;]] [directory]</p></div>
+<div class="paragraph"><p><em>git init</em> [-q | --quiet] [--bare] [--template=&lt;template_directory&gt;]
+ [--separate-git-dir|-L &lt;git dir&gt;]
+ [--shared[=&lt;permissions&gt;]] [directory]</p></div>
+</div>
+<h2 id="_description">DESCRIPTION</h2>
+<div class="sectionbody">
+<div class="paragraph"><p>This command creates an empty git repository - basically a <tt>.git</tt>
+directory with subdirectories for <tt>objects</tt>, <tt>refs/heads</tt>,
+<tt>refs/tags</tt>, and template files. An initial <tt>HEAD</tt> file that
+references the HEAD of the master branch is also created.</p></div>
+<div class="paragraph"><p>If the <tt>$GIT_DIR</tt> environment variable is set then it specifies a path
+to use instead of <tt>./.git</tt> for the base of the repository.</p></div>
+<div class="paragraph"><p>If the object storage directory is specified via the
+<tt>$GIT_OBJECT_DIRECTORY</tt> environment variable then the sha1 directories
+are created underneath - otherwise the default <tt>$GIT_DIR/objects</tt>
+directory is used.</p></div>
+<div class="paragraph"><p>Running <em>git init</em> in an existing repository is safe. It will not
+overwrite things that are already there. The primary reason for
+rerunning <em>git init</em> is to pick up newly added templates (or to move
+the repository to another place if --separate-git-dir is given).</p></div>
</div>
<h2 id="_options">OPTIONS</h2>
<div class="sectionbody">
@@ -449,6 +468,22 @@ DIRECTORY" section below.)
</p>
</dd>
<dt class="hdlist1">
+-L=&lt;git dir&gt;
+</dt>
+<dt class="hdlist1">
+--separate-git-dir=&lt;git dir&gt;
+</dt>
+<dd>
+<p>
+Instead of initializing the repository where it is supposed to be,
+place a filesytem-agnostic git symbolic link there, pointing to the
+specified git path, and initialize a git repository at the path. The
+result is git repository can be separated from working tree. If this
+is reinitialization, the repository will be moved to the specified
+path.
+</p>
+</dd>
+<dt class="hdlist1">
--shared[=(false|true|umask|group|all|world|everybody|0xxx)]
</dt>
<dd>
@@ -505,28 +540,6 @@ into it.</p></div>
<div class="paragraph"><p>If you name a (possibly non-existent) directory at the end of the command
line, the command is run inside the directory (possibly after creating it).</p></div>
</div>
-<h2 id="_description">DESCRIPTION</h2>
-<div class="sectionbody">
-<div class="paragraph"><p>This command creates an empty git repository - basically a <tt>.git</tt> directory
-with subdirectories for <tt>objects</tt>, <tt>refs/heads</tt>, <tt>refs/tags</tt>, and
-template files.
-An initial <tt>HEAD</tt> file that references the HEAD of the master branch
-is also created.</p></div>
-<div class="paragraph"><p>If the <tt>$GIT_DIR</tt> environment variable is set then it specifies a path
-to use instead of <tt>./.git</tt> for the base of the repository.</p></div>
-<div class="paragraph"><p>If the object storage directory is specified via the <tt>$GIT_OBJECT_DIRECTORY</tt>
-environment variable then the sha1 directories are created underneath -
-otherwise the default <tt>$GIT_DIR/objects</tt> directory is used.</p></div>
-<div class="paragraph"><p>Running <em>git init</em> in an existing repository is safe. It will not overwrite
-things that are already there. The primary reason for rerunning <em>git init</em>
-is to pick up newly added templates.</p></div>
-<div class="paragraph"><p>Note that <em>git init</em> is the same as <em>git init-db</em>. The command
-was primarily meant to initialize the object database, but over
-time it has become responsible for setting up the other aspects
-of the repository, such as installing the default hooks and
-setting the configuration variables. The old name is retained
-for backward compatibility reasons.</p></div>
-</div>
<h2 id="_template_directory">TEMPLATE DIRECTORY</h2>
<div class="sectionbody">
<div class="paragraph"><p>The template directory contains files and directories that will be copied to
@@ -592,7 +605,7 @@ add all existing file to the index
</div>
<div id="footer">
<div id="footer-text">
-Last updated 2011-03-15 23:30:13 UTC
+Last updated 2011-04-02 04:31:58 UTC
</div>
</div>
</body>