git 2.28 now allows to set a default branch name: git config --global init.defaultBranch main :)
lwn.net/Articles/827174/
The name of the primary branch in existing repositories, and the
default name used for the first branch in newly created
repositories, is made configurable, so that we can eventually wean
ourselves off of the hardcoded 'master'.
git 2.28 now allows to set a default branch name:
git config --global init.defaultBranch main
:)Oh, thanks Michael! I'll update the post!
For a repository-wise intended name we can use:
git init --initial-branch=stable