diff options
Diffstat (limited to 'git-init.html')
-rw-r--r-- | git-init.html | 62 |
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=<template-directory>]
- [--separate-git-dir <git-dir>] [--object-format=<format>]
- [--ref-format=<format>]
- [-b <branch-name> | --initial-branch=<branch-name>]
- [--shared[=<permissions>]] [<directory>]</pre>
+<pre class="content"><code>git init</code> [<code>-q</code> | <code>--quiet</code>] [<code>--bare</code>] [<code>--template=</code><em><template-directory></em>]
+ [<code>--separate-git-dir</code> <em><git-dir></em>] [<code>--object-format=</code><em><format></em>]
+ [<code>--ref-format=</code><em><format></em>]
+ [<code>-b</code> <em><branch-name></em> | <code>--initial-branch=</code><em><branch-name></em>]
+ [<code>--shared</code>[<code>=</code><em><permissions></em>]] [<em><directory></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=<format>
+<code>--object-format=</code><em><format></em>
</dt>
<dd>
<p>
@@ -822,7 +822,7 @@ created with today’s Git will be usable by future versions of Git without data loss.</p></div>
<div class="dlist"><dl>
<dt class="hdlist1">
---ref-format=<format>
+<code>--ref-format=</code><em><format></em>
</dt>
<dd>
<p>
@@ -843,7 +843,7 @@ Specify the given ref storage <em><format></em> for the repository. The va </ul></div>
</dd>
<dt class="hdlist1">
---template=<template-directory>
+<code>--template=</code><em><template-directory></em>
</dt>
<dd>
<p>
@@ -852,7 +852,7 @@ DIRECTORY" section below.) </p>
</dd>
<dt class="hdlist1">
---separate-git-dir=<git-dir>
+<code>--separate-git-dir=</code><em><git-dir></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 <branch-name>
+<code>-b</code> <em><branch-name></em>
</dt>
<dt class="hdlist1">
---initial-branch=<branch-name>
+<code>--initial-branch=</code><em><branch-name></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|<perm>)]
+<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><perm></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">
-<perm>
+<em><perm></em>
</dt>
<dd>
<p>
<em><perm></em> is a 3-digit octal number prefixed with ‘0` and each file
-will have mode <em><perm></em>. <em><perm></em> will override users’<code>umask(2)</code>
+will have mode <em><perm></em>. <em><perm></em> will override users’ <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’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>
|