git版本需要大于2.28.0
执行命令
git config --global init.defaultBranch main
搞定
git main git分支 http://blog.xqlee.com/article/1693115588236283905.html