mac 通过 Homebrew 安装 git 遇到的问题

问题真多啊 !!!

  • 解决方式 见 1. / 2. / 3 . / 4. / 5.
js 复制代码
remote: Enumerating objects: 290323, done.
remote: Counting objects: 100% (473/473), done.
remote: Compressing objects: 100% (253/253), done.
error: RPC failed; curl 92 HTTP/2 stream 5 was not closed cleanly: CANCEL (err 8)
error: 638 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
Failed during: /usr/bin/git fetch --quiet --progress --force origin
** 1.  git config --global http.version HTTP/1.1 **
js 复制代码
remote: Enumerating objects: 290323, done.
remote: Counting objects: 100% (473/473), done.
remote: Compressing objects: 100% (253/253), done.
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
error: 8177 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
Failed during: /usr/bin/git fetch --quiet --progress --force origin

** 2.  git config --global http.lowSpeedLimit 0 **
** 3.  git config --global http.lowSpeedTime 999999 **
js 复制代码
fatal: unable to access 'https://github.com/Homebrew/brew/': Failed to connect to github.com port 443 after 75001 ms: Couldn't connect to server
Failed during: /usr/bin/git fetch --quiet --progress --force origin
 ** 4. git config --global --unset http.proxy **  
js 复制代码
remote: Enumerating objects: 290333, done.
remote: Counting objects: 100% (483/483), done.
remote: Compressing objects: 100% (259/259), done.
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
error: 10670 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
Failed during: /usr/bin/git fetch --quiet --progress --force origin
** 5. git config --global http.postBuffer 12244288000 **
相关推荐
Lisonseekpan40 分钟前
Git 命令大全:从基础到高级操作
java·git·后端·github·团队开发
kobe_OKOK_1 小时前
Git Tag 用法记录
git
假女吖☌3 小时前
Git_Rebase
git
007php0073 小时前
大厂深度面试相关文章:深入探讨底层原理与高性能优化
java·开发语言·git·python·面试·职场和发展·性能优化
嚴寒4 小时前
我在 Mac 用一行脚本征服了 5TB NTFS:拒绝付费,彻底搞定免费方案
macos·mac
Jonathan Star4 小时前
嵌套 Git 仓库(Submodule/子模块)
大数据·git·elasticsearch
东方欲晓w5 小时前
Git高效开发:常用命令速查指南
git·stm32·学习
_Power_Y5 小时前
Linux&git入门&设计模式(常考点)
linux·git·设计模式
前端架构师-老李6 小时前
Maven安装以及环境变量配置(macOS)
java·macos·maven
刘永鑫Adam7 小时前
代码管理及Linux模拟工具Git for Windows安装使用教程
linux·运维·服务器·git