diff options
author | Don Goodman-Wilson <don@goodman-wilson.com> | 2020-06-24 14:46:33 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-06-24 16:14:21 (GMT) |
commit | 8747ebb7cde9e90d20794c06e6806f75cd540142 (patch) | |
tree | 2dedd0e043802202071b7490c1ba1a97ac03ad88 /Documentation | |
parent | 32ba12dab2acf1ad11836a627956d1473f6b851a (diff) | |
download | git-8747ebb7cde9e90d20794c06e6806f75cd540142.zip git-8747ebb7cde9e90d20794c06e6806f75cd540142.tar.gz git-8747ebb7cde9e90d20794c06e6806f75cd540142.tar.bz2 |
init: allow setting the default for the initial branch name via the config
We just introduced the command-line option
`--initial-branch=<branch-name>` to allow initializing a new repository
with a different initial branch than the hard-coded one.
To allow users to override the initial branch name more permanently
(i.e. without having to specify the name manually for each and every
`git init` invocation), let's introduce the `init.defaultBranch` config
setting.
Helped-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Helped-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Don Goodman-Wilson <don@goodman-wilson.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/config/init.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Documentation/config/init.txt b/Documentation/config/init.txt index 46fa8c6..6ae4a38 100644 --- a/Documentation/config/init.txt +++ b/Documentation/config/init.txt @@ -1,3 +1,7 @@ init.templateDir:: Specify the directory from which templates will be copied. (See the "TEMPLATE DIRECTORY" section of linkgit:git-init[1].) + +init.defaultBranch:: + Allows overriding the default branch name when initializing + a new repository. |