Git错误“致命:无效的分支名称:init.defaultBranch =" [英] Git Error "fatal: invalid branch name: init.defaultBranch ="

查看:110
本文介绍了Git错误“致命:无效的分支名称:init.defaultBranch ="的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我每次执行 git clone

错误:-致命:无效的分支名称:init.defaultBranch =

试图重新安装git(最新)

Tried to reinstall git (latest)

仍然是相同的错误

OS:-Windows

OS :- Windows

推荐答案

您似乎已经尝试过

It would appear that you have experimented with the new (2.28) init.defaultBranch configuration value.

为其分配适当的值:

git config --global init.defaultBranch main

这篇关于Git错误“致命:无效的分支名称:init.defaultBranch ="的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆