我在尝试 git clone
时遇到错误一个存储库:
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
对于我尝试克隆的任何存储库,都会发生这种情况。我正在运行
git version 2.21.0
通过 homebrew
安装.有没有其他人遇到过这个问题?不太清楚这里发生了什么......
谢谢!
最佳答案
好吧,我似乎已经解决了这个问题。从我的 .gitconfig 中删除以下内容似乎可以解决问题,但我不知道为什么:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
我知道
git v2.21.0
几天前刚刚发布,所以也许有些东西在引擎盖下发生了变化。我需要查看发行说明。无论如何,希望这可以帮助别人!
关于Git克隆错误: 'fatal: multiple updates for ... ref not allowed' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54922704/