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: NJohannes Schindelin <johannes.schindelin@gmx.de> Helped-by: NDerrick Stolee <dstolee@microsoft.com> Signed-off-by: NDon Goodman-Wilson <don@goodman-wilson.com> Signed-off-by: NJunio C Hamano <gitster@pobox.com>
Showing
想要评论请 注册 或 登录