summaryrefslogtreecommitdiffstats
path: root/git-init.html
diff options
context:
space:
mode:
authorJunio C Hamano <junio@hera.kernel.org>2007-01-12 02:43:42 +0000
committerJunio C Hamano <junio@hera.kernel.org>2007-01-12 02:43:42 +0000
commit91f77a0d717f22a5e0b1c474ee9b8db28fa0e0ca (patch)
tree0da22bb05fc85b189fcbc0633c93940d66bcf02d /git-init.html
parent617d8c47a027b90019e749910aca8c9146f04581 (diff)
downloadgit-htmldocs-91f77a0d717f22a5e0b1c474ee9b8db28fa0e0ca.tar.gz
Autogenerated HTML docs for v1.5.0-rc1
Diffstat (limited to 'git-init.html')
-rw-r--r--git-init.html25
1 files changed, 16 insertions, 9 deletions
diff --git a/git-init.html b/git-init.html
index 6bc5b1f9b..b400c4a25 100644
--- a/git-init.html
+++ b/git-init.html
@@ -256,23 +256,23 @@ div.exampleblock-content {
padding-left: 0.5em;
}
</style>
-<title>git-init-db(1)</title>
+<title>git-init(1)</title>
</head>
<body>
<div id="header">
<h1>
-git-init-db(1) Manual Page
+git-init(1) Manual Page
</h1>
<h2>NAME</h2>
<div class="sectionbody">
-<p>git-init-db -
+<p>git-init -
Creates an empty git repository
</p>
</div>
</div>
<h2>SYNOPSIS</h2>
<div class="sectionbody">
-<p><em>git-init-db</em> [--template=&lt;template_directory&gt;] [--shared[=&lt;permissions&gt;]]</p>
+<p><em>git-init</em> [--template=&lt;template_directory&gt;] [--shared[=&lt;permissions&gt;]]</p>
</div>
<h2>OPTIONS</h2>
<div class="sectionbody">
@@ -343,10 +343,17 @@ 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>
environment variable then the sha1 directories are created underneath -
otherwise the default <tt>$GIT_DIR/objects</tt> directory is used.</p>
-<p>Running <tt>git-init-db</tt> in an existing repository is safe. It will not overwrite
-things that are already there. The primary reason for rerunning <tt>git-init-db</tt>
+<p>Running <tt>git-init</tt> in an existing repository is safe. It will not overwrite
+things that are already there. The primary reason for rerunning <tt>git-init</tt>
is to pick up newly added templates.</p>
-<p>Note that <tt>git-init</tt> is the same as <tt>git-init-db</tt>.</p>
+<p>Note that <tt>git-init</tt> is the same as <tt>git-init-db</tt>. 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
+because people are so used to it and many existing documents
+refer to it that way, and this will not change for some time to
+come.</p>
</div>
<h2>EXAMPLES</h2>
<div class="sectionbody">
@@ -358,7 +365,7 @@ Start a new git repository for an existing code base
<div class="listingblock">
<div class="content">
<pre><tt>$ cd /path/to/my/codebase
-$ git-init-db <b>(1)</b>
+$ git-init <b>(1)</b>
$ git-add . <b>(2)</b></tt></pre>
</div></div>
<ol>
@@ -390,7 +397,7 @@ add all existing file to the index
</div>
<div id="footer">
<div id="footer-text">
-Last updated 11-Jan-2007 00:35:44 UTC
+Last updated 12-Jan-2007 02:43:35 UTC
</div>
</div>
</body>