summaryrefslogtreecommitdiffstats
path: root/git-init.html
diff options
context:
space:
mode:
Diffstat (limited to 'git-init.html')
-rw-r--r--git-init.html62
1 files changed, 31 insertions, 31 deletions
diff --git a/git-init.html b/git-init.html
index 51c139e95..8a329281c 100644
--- a/git-init.html
+++ b/git-init.html
@@ -749,11 +749,11 @@ git-init(1) Manual Page
<h2 id="_synopsis">SYNOPSIS</h2>
<div class="sectionbody">
<div class="verseblock">
-<pre class="content"><em>git init</em> [-q | --quiet] [--bare] [--template=&lt;template-directory&gt;]
- [--separate-git-dir &lt;git-dir&gt;] [--object-format=&lt;format&gt;]
- [--ref-format=&lt;format&gt;]
- [-b &lt;branch-name&gt; | --initial-branch=&lt;branch-name&gt;]
- [--shared[=&lt;permissions&gt;]] [&lt;directory&gt;]</pre>
+<pre class="content"><code>git init</code> [<code>-q</code> | <code>--quiet</code>] [<code>--bare</code>] [<code>--template=</code><em>&lt;template-directory&gt;</em>]
+ [<code>--separate-git-dir</code> <em>&lt;git-dir&gt;</em>] [<code>--object-format=</code><em>&lt;format&gt;</em>]
+ [<code>--ref-format=</code><em>&lt;format&gt;</em>]
+ [<code>-b</code> <em>&lt;branch-name&gt;</em> | <code>--initial-branch=</code><em>&lt;branch-name&gt;</em>]
+ [<code>--shared</code>[<code>=</code><em>&lt;permissions&gt;</em>]] [<em>&lt;directory&gt;</em>]</pre>
<div class="attribution">
</div></div>
</div>
@@ -783,10 +783,10 @@ the repository to another place if <code>--separate-git-dir</code> is given).</p
<div class="sectionbody">
<div class="dlist"><dl>
<dt class="hdlist1">
--q
+<code>-q</code>
</dt>
<dt class="hdlist1">
---quiet
+<code>--quiet</code>
</dt>
<dd>
<p>
@@ -794,7 +794,7 @@ Only print error and warning messages; all other output will be suppressed.
</p>
</dd>
<dt class="hdlist1">
---bare
+<code>--bare</code>
</dt>
<dd>
<p>
@@ -803,7 +803,7 @@ current working directory.
</p>
</dd>
<dt class="hdlist1">
---object-format=&lt;format&gt;
+<code>--object-format=</code><em>&lt;format&gt;</em>
</dt>
<dd>
<p>
@@ -822,7 +822,7 @@ created with today&#8217;s Git will be usable by future versions of Git
without data loss.</p></div>
<div class="dlist"><dl>
<dt class="hdlist1">
---ref-format=&lt;format&gt;
+<code>--ref-format=</code><em>&lt;format&gt;</em>
</dt>
<dd>
<p>
@@ -843,7 +843,7 @@ Specify the given ref storage <em>&lt;format&gt;</em> for the repository. The va
</ul></div>
</dd>
<dt class="hdlist1">
---template=&lt;template-directory&gt;
+<code>--template=</code><em>&lt;template-directory&gt;</em>
</dt>
<dd>
<p>
@@ -852,7 +852,7 @@ DIRECTORY" section below.)
</p>
</dd>
<dt class="hdlist1">
---separate-git-dir=&lt;git-dir&gt;
+<code>--separate-git-dir=</code><em>&lt;git-dir&gt;</em>
</dt>
<dd>
<p>
@@ -864,10 +864,10 @@ repository.
<div class="paragraph"><p>If this is a reinitialization, the repository will be moved to the specified path.</p></div>
</dd>
<dt class="hdlist1">
--b &lt;branch-name&gt;
+<code>-b</code> <em>&lt;branch-name&gt;</em>
</dt>
<dt class="hdlist1">
---initial-branch=&lt;branch-name&gt;
+<code>--initial-branch=</code><em>&lt;branch-name&gt;</em>
</dt>
<dd>
<p>
@@ -878,7 +878,7 @@ customized via the <code>init.defaultBranch</code> configuration variable).
</p>
</dd>
<dt class="hdlist1">
---shared[=(false|true|umask|group|all|world|everybody|&lt;perm&gt;)]
+<code>--shared</code>[<code>=</code>(<code>false</code>|<code>true</code>|<code>umask</code>|<code>group</code>|<code>all</code>|<code>world</code>|<code>everybody</code>|<em>&lt;perm&gt;</em>)]
</dt>
<dd>
<p>
@@ -887,7 +887,7 @@ allows users belonging to the same group to push into that
repository. When specified, the config variable <code>core.sharedRepository</code> is
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 <code>umask(2)</code>.
+by <code>umask</code>(2).
</p>
<div class="paragraph"><p>The option can have the following values, defaulting to <code>group</code> if no value
is given:</p></div>
@@ -895,41 +895,41 @@ is given:</p></div>
<div class="content">
<div class="dlist"><dl>
<dt class="hdlist1">
-umask
+<code>umask</code>
</dt>
<dt class="hdlist1">
-false
+<code>false</code>
</dt>
<dd>
<p>
-Use permissions reported by umask(2). The default, when <code>--shared</code> is not
+Use permissions reported by <code>umask</code>(2). The default, when <code>--shared</code> is not
specified.
</p>
</dd>
<dt class="hdlist1">
-group
+<code>group</code>
</dt>
<dt class="hdlist1">
-true
+<code>true</code>
</dt>
<dd>
<p>
-Make the repository group-writable, (and g+sx, since the git group may not be
+Make the repository group-writable, (and <code>g+sx</code>, since the git group may not be
the primary group of all users). This is used to loosen the permissions of an
-otherwise safe umask(2) value. Note that the umask still applies to the other
+otherwise safe <code>umask</code>(2) value. Note that the umask still applies to the other
permission bits (e.g. if umask is <code>0022</code>, using <code>group</code> will not remove read
privileges from other (non-group) users). See <code>0xxx</code> for how to exactly specify
the repository permissions.
</p>
</dd>
<dt class="hdlist1">
-all
+<code>all</code>
</dt>
<dt class="hdlist1">
-world
+<code>world</code>
</dt>
<dt class="hdlist1">
-everybody
+<code>everybody</code>
</dt>
<dd>
<p>
@@ -937,12 +937,12 @@ Same as <code>group</code>, but make the repository readable by all users.
</p>
</dd>
<dt class="hdlist1">
-&lt;perm&gt;
+<em>&lt;perm&gt;</em>
</dt>
<dd>
<p>
<em>&lt;perm&gt;</em> is a 3-digit octal number prefixed with &#8216;0` and each file
-will have mode <em>&lt;perm&gt;</em>. <em>&lt;perm&gt;</em> will override users&#8217;<code>umask(2)</code>
+will have mode <em>&lt;perm&gt;</em>. <em>&lt;perm&gt;</em> will override users&#8217; <code>umask</code>(2)
value (and not only loosen permissions as <code>group</code> and <code>all</code>
do). <code>0640</code> will create a repository which is group-readable, but
not group-writable or accessible to others. <code>0660</code> will create a repo
@@ -1041,7 +1041,7 @@ from the <a href="git-config.html">git-config(1)</a> documentation. The content
as what&#8217;s found there:</p></div>
<div class="dlist"><dl>
<dt class="hdlist1">
-init.templateDir
+<code>init.templateDir</code>
</dt>
<dd>
<p>
@@ -1049,7 +1049,7 @@ init.templateDir
</p>
</dd>
<dt class="hdlist1">
-init.defaultBranch
+<code>init.defaultBranch</code>
</dt>
<dd>
<p>
@@ -1071,7 +1071,7 @@ init.defaultBranch
<div id="footer">
<div id="footer-text">
Last updated
- 2024-03-21 16:28:38 PDT
+ 2024-04-09 14:45:01 PDT
</div>
</div>
</body>