Git克隆错误:“致命:不允许对... ref进行多次更新" [英] Git cloning error: 'fatal: multiple updates for ... ref not allowed'
问题描述
尝试存储库git clone
时出现错误:
I'm getting an error when trying to git clone
a repository:
git clone https://github.com/laradock/laradock.git
Cloning into 'laradock'...
remote: Enumerating objects: 8606, done.
remote: Total 8606 (delta 0), reused 0 (delta 0), pack-reused 8606
Receiving objects: 100% (8606/8606), 8.09 MiB | 6.92 MiB/s, done.
Resolving deltas: 100% (4551/4551), done.
fatal: multiple updates for ref 'refs/remotes/origin/LaraDock-ToolBox' not allowed
我尝试克隆的任何回购都在发生这种情况.我正在运行通过homebrew
安装的git version 2.21.0
.
This is happening for any repo I try to clone. I am running git version 2.21.0
installed via homebrew
.
还有其他人对此问题感到迷惑吗?不太确定这是怎么回事...
Has anyone else encoutered this issue? Not really sure whats going on here...
谢谢!
推荐答案
好吧,我似乎已经解决了该问题.从我的.gitconfig中删除以下内容似乎可以解决问题,但是我不确定为什么:
Well, I seem to have fixed the issue. Removing the following from my .gitconfig seemed to do the trick, but I am not sure why:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
我知道git v2.21.0
是几天前发布的,所以也许某些事情发生了变化.我需要查看发行说明.
I know that git v2.21.0
was just released a few days ago, so maybe something changed under the hood. I need to check out the release notes.
无论如何,希望这可以对某人有所帮助!
Anyways, hope this can help someone!
这篇关于Git克隆错误:“致命:不允许对... ref进行多次更新"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!