Autogenerated HTML docs for v1.1.1-gcfa6
[git.git] / git-init-db.html
index dead1b6..34249db 100644 (file)
@@ -272,7 +272,7 @@ git-init-db(1) Manual Page
 </div>\r
 <h2>SYNOPSIS</h2>\r
 <div class="sectionbody">\r
-<p><em>git-init-db</em> [--template=&lt;template_directory&gt;]</p>\r
+<p><em>git-init-db</em> [--template=&lt;template_directory&gt;] [--shared]</p>\r
 </div>\r
 <h2>OPTIONS</h2>\r
 <div class="sectionbody">\r
@@ -285,6 +285,14 @@ git-init-db(1) Manual Page
         Provide the directory in from which templates will be used.\r
 </p>\r
 </dd>\r
+<dt>\r
+--shared\r
+</dt>\r
+<dd>\r
+<p>\r
+        Specify that the git repository is to be shared amongst several users.\r
+</p>\r
+</dd>\r
 </dl>\r
 </div>\r
 <h2>DESCRIPTION</h2>\r
@@ -297,7 +305,13 @@ to use instead of <tt>./.git</tt> for the base of the repository.</p>
 <p>If the object storage directory is specified via the <tt>$GIT_OBJECT_DIRECTORY</tt>\r
 environment variable then the sha1 directories are created underneath -\r
 otherwise the default <tt>$GIT_DIR/objects</tt> directory is used.</p>\r
-<p><tt>git-init-db</tt> won't hurt an existing repository.</p>\r
+<p>A shared repository allows users belonging to the same group to push into that\r
+repository. When specifying <tt>--shared</tt> the config variable "core.sharedRepository"\r
+is set to <em>true</em> so that directories under <tt>$GIT_DIR</tt> are made group writable\r
+(and g+sx, since the git group may be not the primary group of all users).</p>\r
+<p>Running <tt>git-init-db</tt> in an existing repository is safe. It will not overwrite\r
+things that are already there. The primary reason for rerunning <tt>git-init-db</tt>\r
+is to pick up newly added templates.</p>\r
 </div>\r
 <h2>EXAMPLES</h2>\r
 <div class="sectionbody">\r
@@ -332,7 +346,7 @@ $ git-add . <b>(2)</b>
 </div>\r
 <div id="footer">\r
 <div id="footer-text">\r
-Last updated 27-Dec-2005 00:16:13 PDT\r
+Last updated 06-Jan-2006 17:12:38 PDT\r
 </div>\r
 </div>\r
 </body>\r