查看 git 的设置
$ git config --get init.defaultbranch > master
修改
$ git config --global init.defaultBranch main
注意: 需要高版本的 git
git