将git的默认分支, 从 master 改为 main 悟空和大王 2024-02-16 48 阅读1分钟 前提 git版本至少2.28版本 通过命令修改 git config --global init.defaultBranch main 通过配置文件修改 %userprofile%\.gitconfig