Git克隆错误: 'fatal: multiple updates for ... ref not allowed'

标签 git macos homebrew

我在尝试 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/

相关文章:

git - 获取在 git 命令中使用的当前分支名称

git diff 在文件相同时报告差异

git - 2017 年在 OS X 上从源代码构建 Apache Hadoop

objective-c - OSX 查找 "Dialog/Pop-up"的名称是什么?

ruby - 如何在 Lion 上安装 Xcode 4.6,需要用 RVM 升级 ruby

Git 创建巨大的临时垃圾对象

ios - 如何清除Swift或Objective-C中对NSComboBox的选择?

python - 在 Python 3.3 venv (OS X/Homebrew) 中安装 distribute

ruby - 如何解决 brewlinux 缺少的@rb_readlink?

ruby-on-rails - 错误 : undefined method `=~' when installing ImageMagick through Homebrew