summaryrefslogtreecommitdiffstats
path: root/git-init.html
diff options
context:
space:
mode:
authorJunio C Hamano <junio@hera.kernel.org>2008-07-06 05:20:31 +0000
committerJunio C Hamano <junio@hera.kernel.org>2008-07-06 05:20:31 +0000
commitba4b9286c25f18c7ebbb809ee5732a7810377ab6 (patch)
tree390507328a7564b65dc803683c34235700b97409 /git-init.html
parent05bf9c54a827e48b2b576488f5170a3490b5180e (diff)
downloadgit-htmldocs-ba4b9286c25f18c7ebbb809ee5732a7810377ab6.tar.gz
Autogenerated HTML docs for v1.5.6.2-212-g08b5
Diffstat (limited to 'git-init.html')
-rw-r--r--git-init.html142
1 files changed, 95 insertions, 47 deletions
diff --git a/git-init.html b/git-init.html
index ccdb11773..ba308c710 100644
--- a/git-init.html
+++ b/git-init.html
@@ -3,7 +3,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
-<meta name="generator" content="AsciiDoc 7.0.2" />
+<meta name="generator" content="AsciiDoc 8.2.5" />
<style type="text/css">
/* Debug borders */
p, li, dt, dd, div, pre, h1, h2, h3, h4, h5, h6 {
@@ -16,8 +16,13 @@ body {
margin: 1em 5% 1em 5%;
}
-a { color: blue; }
-a:visited { color: fuchsia; }
+a {
+ color: blue;
+ text-decoration: underline;
+}
+a:visited {
+ color: fuchsia;
+}
em {
font-style: italic;
@@ -39,13 +44,18 @@ h1, h2, h3, h4, h5, h6 {
line-height: 1.3;
}
-h1 {
+h1, h2, h3 {
border-bottom: 2px solid silver;
}
h2 {
- border-bottom: 2px solid silver;
padding-top: 0.5em;
}
+h3 {
+ float: left;
+}
+h3 + * {
+ clear: left;
+}
div.sectionbody {
font-family: serif;
@@ -70,7 +80,7 @@ span#author {
color: #527bbd;
font-family: sans-serif;
font-weight: bold;
- font-size: 1.2em;
+ font-size: 1.1em;
}
span#email {
}
@@ -139,6 +149,9 @@ div.sidebarblock > div.content {
padding: 0.5em;
}
+div.listingblock {
+ margin-right: 0%;
+}
div.listingblock > div.content {
border: 1px solid silver;
background: #f4f4f4;
@@ -148,9 +161,13 @@ div.listingblock > div.content {
div.quoteblock > div.content {
padding-left: 2.0em;
}
-div.quoteblock .attribution {
+
+div.attribution {
text-align: right;
}
+div.verseblock + div.attribution {
+ text-align: left;
+}
div.admonitionblock .icon {
vertical-align: top;
@@ -194,13 +211,12 @@ dd > *:first-child {
ul, ol {
list-style-position: outside;
}
-ol.olist2 {
+div.olist2 ol {
list-style-type: lower-alpha;
}
div.tableblock > table {
- border-color: #527bbd;
- border-width: 3px;
+ border: 3px solid #527bbd;
}
thead {
font-family: sans-serif;
@@ -214,6 +230,9 @@ div.hlist {
margin-top: 0.8em;
margin-bottom: 0.8em;
}
+div.hlist td {
+ padding-bottom: 5px;
+}
td.hlist1 {
vertical-align: top;
font-style: italic;
@@ -226,7 +245,33 @@ td.hlist2 {
@media print {
div#footer-badges { display: none; }
}
-include::./stylesheets/xhtml11-manpage.css[]
+
+div#toctitle {
+ color: #527bbd;
+ font-family: sans-serif;
+ font-size: 1.1em;
+ font-weight: bold;
+ margin-top: 1.0em;
+ margin-bottom: 0.1em;
+}
+
+div.toclevel1, div.toclevel2, div.toclevel3, div.toclevel4 {
+ margin-top: 0;
+ margin-bottom: 0;
+}
+div.toclevel2 {
+ margin-left: 2em;
+ font-size: 0.9em;
+}
+div.toclevel3 {
+ margin-left: 4em;
+ font-size: 0.9em;
+}
+div.toclevel4 {
+ margin-left: 6em;
+ font-size: 0.9em;
+}
+include1::./stylesheets/xhtml11-manpage.css[]
/* Workarounds for IE6's broken and incomplete CSS2. */
div.sidebar-content {
@@ -255,6 +300,9 @@ div.exampleblock-content {
border-left: 2px solid silver;
padding-left: 0.5em;
}
+
+/* IE6 sets dynamically generated links as visited. */
+div#toc a:visited { color: blue; }
</style>
<title>git-init(1)</title>
</head>
@@ -272,11 +320,11 @@ git-init(1) Manual Page
</div>
<h2>SYNOPSIS</h2>
<div class="sectionbody">
-<p><em>git init</em> [-q | --quiet] [--bare] [--template=&lt;template_directory&gt;] [--shared[=&lt;permissions&gt;]]</p>
+<div class="para"><p><em>git init</em> [-q | --quiet] [--bare] [--template=&lt;template_directory&gt;] [--shared[=&lt;permissions&gt;]]</p></div>
</div>
-<h2>OPTIONS</h2>
+<h2 id="_options">OPTIONS</h2>
<div class="sectionbody">
-<dl>
+<div class="vlist"><dl>
<dt>
-q
</dt>
@@ -305,11 +353,11 @@ current working directory.
Provide the directory from which templates will be used. The default template
directory is <tt>/usr/share/git-core/templates</tt>.
</p>
-<p>When specified, <tt>&lt;template_directory&gt;</tt> is used as the source of the template
+<div class="para"><p>When specified, <tt>&lt;template_directory&gt;</tt> is used as the source of the template
files rather than the default. The template files include some directory
structure, some suggested "exclude patterns", and copies of non-executing
"hook" files. The suggested patterns and hook files are all modifiable and
-extensible.</p>
+extensible.</p></div>
</dd>
<dt>
--shared[={false|true|umask|group|all|world|everybody|0xxx}]
@@ -323,9 +371,9 @@ set so that files and directories under <tt>$GIT_DIR</tt> are created with the
requested permissions. When not specified, git will use permissions reported
by umask(2).
</p>
-<p>The option can have the following values, defaulting to <em>group</em> if no value
-is given:</p>
-<ul>
+<div class="para"><p>The option can have the following values, defaulting to <em>group</em> if no value
+is given:</p></div>
+<div class="ilist"><ul>
<li>
<p>
<em>umask</em> (or <em>false</em>): Use permissions reported by umask(2). The default,
@@ -352,39 +400,39 @@ is given:</p>
can use this option. <em>0640</em> will create a repository which is group-readable
but not writable. <em>0660</em> is equivalent to <em>group</em>.
</p>
-<p>By default, the configuration flag receive.denyNonFastForwards is enabled
+<div class="para"><p>By default, the configuration flag receive.denyNonFastForwards is enabled
in shared repositories, so that you cannot force a non fast-forwarding push
-into it.</p>
+into it.</p></div>
</li>
-</ul>
+</ul></div>
</dd>
-</dl>
+</dl></div>
</div>
-<h2>DESCRIPTION</h2>
+<h2 id="_description">DESCRIPTION</h2>
<div class="sectionbody">
-<p>This command creates an empty git repository - basically a <tt>.git</tt> directory
+<div class="para"><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>
-<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>
-<p>If the object storage directory is specified via the <tt>$GIT_OBJECT_DIRECTORY</tt>
+is also created.</p></div>
+<div class="para"><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="para"><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</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>. The command
+otherwise the default <tt>$GIT_DIR/objects</tt> directory is used.</p></div>
+<div class="para"><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="para"><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>
+for backward compatibility reasons.</p></div>
</div>
-<h2>EXAMPLES</h2>
+<h2 id="_examples">EXAMPLES</h2>
<div class="sectionbody">
-<dl>
+<div class="vlist"><dl>
<dt>
Start a new git repository for an existing code base
</dt>
@@ -395,7 +443,7 @@ Start a new git repository for an existing code base
$ git init <b>(1)</b>
$ git add . <b>(2)</b></tt></pre>
</div></div>
-<ol>
+<div class="colist"><ol>
<li>
<p>
prepare /path/to/my/codebase/.git directory
@@ -406,25 +454,25 @@ prepare /path/to/my/codebase/.git directory
add all existing file to the index
</p>
</li>
-</ol>
+</ol></div>
</dd>
-</dl>
+</dl></div>
</div>
-<h2>Author</h2>
+<h2 id="_author">Author</h2>
<div class="sectionbody">
-<p>Written by Linus Torvalds &lt;torvalds@osdl.org&gt;</p>
+<div class="para"><p>Written by Linus Torvalds &lt;torvalds@osdl.org&gt;</p></div>
</div>
-<h2>Documentation</h2>
+<h2 id="_documentation">Documentation</h2>
<div class="sectionbody">
-<p>Documentation by David Greaves, Junio C Hamano and the git-list &lt;git@vger.kernel.org&gt;.</p>
+<div class="para"><p>Documentation by David Greaves, Junio C Hamano and the git-list &lt;git@vger.kernel.org&gt;.</p></div>
</div>
-<h2>GIT</h2>
+<h2 id="_git">GIT</h2>
<div class="sectionbody">
-<p>Part of the <a href="git.html">git(1)</a> suite</p>
+<div class="para"><p>Part of the <a href="git.html">git(1)</a> suite</p></div>
</div>
<div id="footer">
<div id="footer-text">
-Last updated 02-Jul-2008 03:01:49 UTC
+Last updated 2008-07-06 05:16:51 UTC
</div>
</div>
</body>