With git 2.28 you can set a global config with this command
git config --global init.defaultBranch {branchName}
Replace {branchName} with the default branch name
and now whenever you create a new git repo, the default branch will be this.
More details in my video here: https://www.youtube.com/watch?v=YccHk6QlRss