summaryrefslogtreecommitdiffstats
path: root/git-init.html
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2014-10-31 13:25:53 -0700
committerJunio C Hamano <gitster@pobox.com>2014-10-31 13:25:53 -0700
commitc14e6ad9a230ad90c84b7f620d87fbe49a2d0342 (patch)
tree120346dc383e3d1c4219fe8c533eb22cb6af2b55 /git-init.html
parent2a4bcbc355496c8d83b1b9f8892c4cbe8f584158 (diff)
downloadgit-htmldocs-c14e6ad9a230ad90c84b7f620d87fbe49a2d0342.tar.gz
Autogenerated HTML docs for v2.2.0-rc0
Diffstat (limited to 'git-init.html')
-rw-r--r--git-init.html74
1 files changed, 36 insertions, 38 deletions
diff --git a/git-init.html b/git-init.html
index 541c66302..b51d235d3 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="application/xhtml+xml; charset=UTF-8" />
-<meta name="generator" content="AsciiDoc 8.6.6" />
+<meta name="generator" content="AsciiDoc 8.6.9" />
<title>git-init(1)</title>
<style type="text/css">
/* Shared CSS for AsciiDoc xhtml11 and html5 backends */
@@ -87,10 +87,16 @@ ul, ol, li > p {
ul > li { color: #aaa; }
ul > li > * { color: black; }
-pre {
+.monospaced, code, pre {
+ font-family: "Courier New", Courier, monospace;
+ font-size: inherit;
+ color: navy;
padding: 0;
margin: 0;
}
+pre {
+ white-space: pre-wrap;
+}
#author {
color: #527bbd;
@@ -219,7 +225,7 @@ div.exampleblock > div.content {
}
div.imageblock div.content { padding-left: 0; }
-span.image img { border-style: none; }
+span.image img { border-style: none; vertical-align: text-bottom; }
a.image:visited { color: white; }
dl {
@@ -349,7 +355,7 @@ div.colist td img {
margin-bottom: 0.1em;
}
-div.toclevel1, div.toclevel2, div.toclevel3, div.toclevel4 {
+div.toclevel0, div.toclevel1, div.toclevel2, div.toclevel3, div.toclevel4 {
margin-top: 0;
margin-bottom: 0;
}
@@ -407,18 +413,14 @@ span.underline { text-decoration: underline; }
span.overline { text-decoration: overline; }
span.line-through { text-decoration: line-through; }
+div.unbreakable { page-break-inside: avoid; }
+
/*
* xhtml11 specific
*
* */
-tt {
- font-family: monospace;
- font-size: inherit;
- color: navy;
-}
-
div.tableblock {
margin-top: 1.0em;
margin-bottom: 1.5em;
@@ -452,12 +454,6 @@ div.tableblock > table[frame="vsides"] {
*
* */
-.monospaced {
- font-family: monospace;
- font-size: inherit;
- color: navy;
-}
-
table.tableblock {
margin-top: 1.0em;
margin-bottom: 1.5em;
@@ -537,6 +533,8 @@ body.manpage div.sectionbody {
@media print {
body.manpage div#toc { display: none; }
}
+
+
</style>
<script type="text/javascript">
/*<![CDATA[*/
@@ -581,7 +579,7 @@ toc: function (toclevels) {
function tocEntries(el, toclevels) {
var result = new Array;
- var re = new RegExp('[hH]([2-'+(toclevels+1)+'])');
+ var re = new RegExp('[hH]([1-'+(toclevels+1)+'])');
// Function that scans the DOM tree for header elements (the DOM2
// nodeIterator API would be a better technique but not supported by all
// browsers).
@@ -610,7 +608,7 @@ toc: function (toclevels) {
var i;
for (i = 0; i < toc.childNodes.length; i++) {
var entry = toc.childNodes[i];
- if (entry.nodeName == 'div'
+ if (entry.nodeName.toLowerCase() == 'div'
&& entry.getAttribute("class")
&& entry.getAttribute("class").match(/^toclevel/))
tocEntriesToRemove.push(entry);
@@ -656,7 +654,7 @@ footnotes: function () {
var entriesToRemove = [];
for (i = 0; i < noteholder.childNodes.length; i++) {
var entry = noteholder.childNodes[i];
- if (entry.nodeName == 'div' && entry.getAttribute("class") == "footnote")
+ if (entry.nodeName.toLowerCase() == 'div' && entry.getAttribute("class") == "footnote")
entriesToRemove.push(entry);
}
for (i = 0; i < entriesToRemove.length; i++) {
@@ -760,15 +758,15 @@ git-init(1) Manual Page
<div class="sect1">
<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
+<div class="paragraph"><p>This command creates an empty Git repository - basically a <code>.git</code>
+directory with subdirectories for <code>objects</code>, <code>refs/heads</code>,
+<code>refs/tags</code>, and template files. An initial <code>HEAD</code> 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 <code>$GIT_DIR</code> environment variable is set then it specifies a path
+to use instead of <code>./.git</code> 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>
+<code>$GIT_OBJECT_DIRECTORY</code> environment variable then the sha1 directories
+are created underneath - otherwise the default <code>$GIT_DIR/objects</code>
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
@@ -816,8 +814,8 @@ DIRECTORY" section below.)
</dt>
<dd>
<p>
-Instead of initializing the repository as a directory to either <tt>$GIT_DIR</tt> or
-<tt>./.git/</tt>, create a text file there containing the path to the actual
+Instead of initializing the repository as a directory to either <code>$GIT_DIR</code> or
+<code>./.git/</code>, create a text file there containing the path to the actual
repository. This file acts as filesystem-agnostic Git symbolic link to the
repository.
</p>
@@ -831,7 +829,7 @@ repository.
Specify that the Git repository is to be shared amongst several users. This
allows users belonging to the same group to push into that
repository. When specified, the config variable "core.sharedRepository" is
-set so that files and directories under <tt>$GIT_DIR</tt> are created with the
+set so that files and directories under <code>$GIT_DIR</code> are created with the
requested permissions. When not specified, Git will use permissions reported
by umask(2).
</p>
@@ -845,7 +843,7 @@ is given:</p></div>
</dt>
<dd>
<p>
-Use permissions reported by umask(2). The default, when <tt>--shared</tt> is not
+Use permissions reported by umask(2). The default, when <code>--shared</code> is not
specified.
</p>
</dd>
@@ -886,7 +884,7 @@ readable and writable to the current user and group, but inaccessible to others.
</div></div>
</dd>
</dl></div>
-<div class="paragraph"><p>By default, the configuration flag <tt>receive.denyNonFastForwards</tt> is enabled
+<div class="paragraph"><p>By default, the configuration flag <code>receive.denyNonFastForwards</code> is enabled
in shared repositories, so that you cannot force a non fast-forwarding push
into it.</p></div>
<div class="paragraph"><p>If you provide a <em>directory</em>, the command is run inside it. If this directory
@@ -898,27 +896,27 @@ does not exist, it will be created.</p></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
-the <tt>$GIT_DIR</tt> after it is created.</p></div>
+the <code>$GIT_DIR</code> after it is created.</p></div>
<div class="paragraph"><p>The template directory will be one of the following (in order):</p></div>
<div class="ulist"><ul>
<li>
<p>
-the argument given with the <tt>--template</tt> option;
+the argument given with the <code>--template</code> option;
</p>
</li>
<li>
<p>
-the contents of the <tt>$GIT_TEMPLATE_DIR</tt> environment variable;
+the contents of the <code>$GIT_TEMPLATE_DIR</code> environment variable;
</p>
</li>
<li>
<p>
-the <tt>init.templatedir</tt> configuration variable; or
+the <code>init.templatedir</code> configuration variable; or
</p>
</li>
<li>
<p>
-the default template directory: <tt>/usr/share/git-core/templates</tt>.
+the default template directory: <code>/usr/share/git-core/templates</code>.
</p>
</li>
</ul></div>
@@ -936,10 +934,10 @@ Start a new Git repository for an existing code base
<dd>
<div class="listingblock">
<div class="content">
-<pre><tt>$ cd /path/to/my/codebase
+<pre><code>$ cd /path/to/my/codebase
$ git init <b>&lt;1&gt;</b>
$ git add . <b>&lt;2&gt;</b>
-$ git commit <b>&lt;3&gt;</b></tt></pre>
+$ git commit <b>&lt;3&gt;</b></code></pre>
</div></div>
<div class="colist arabic"><ol>
<li>