Git 克隆失败

fatal: invalid branch name: init.defaultBranch =
解决办法:

git config --global init.defaultBranch main