summaryrefslogtreecommitdiffstats
path: root/git-init.html
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2020-12-18 16:28:51 -0800
committerJunio C Hamano <gitster@pobox.com>2020-12-18 16:28:51 -0800
commitdc6e945fbfdcf466e13a2b5d04ae08b8ed3e7991 (patch)
tree895975f65f03c68ef9545fbfb86ebdc8fa5ccd2e /git-init.html
parent53d7d1e9c334456dc35132529e8427c98357c65e (diff)
downloadgit-htmldocs-dc6e945fbfdcf466e13a2b5d04ae08b8ed3e7991.tar.gz
Autogenerated HTML docs for v2.30.0-rc1
Diffstat (limited to 'git-init.html')
-rw-r--r--git-init.html13
1 files changed, 8 insertions, 5 deletions
diff --git a/git-init.html b/git-init.html
index 8d4d69355..2db5bed47 100644
--- a/git-init.html
+++ b/git-init.html
@@ -762,8 +762,9 @@ git-init(1) Manual Page
<div class="sectionbody">
<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>
+<code>refs/tags</code>, and template files. An initial branch without any
+commits will be created (see the <code>--initial-branch</code> option below
+for its name).</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
@@ -844,8 +845,10 @@ repository.
</dt>
<dd>
<p>
-Use the specified name for the initial branch in the newly created repository.
-If not specified, fall back to the default name: <code>master</code>.
+Use the specified name for the initial branch in the newly created
+repository. If not specified, fall back to the default name (currently
+<code>master</code>, but this is subject to change in the future; the name can be
+customized via the <code>init.defaultBranch</code> configuration variable).
</p>
</dd>
<dt class="hdlist1">
@@ -1000,7 +1003,7 @@ Record the pristine state as the first commit in the history.
<div id="footer">
<div id="footer-text">
Last updated
- 2020-10-09 08:47:57 PDT
+ 2020-12-18 16:26:08 PST
</div>
</div>
</body>