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 **
相关推荐
一块小土坷垃38 分钟前
BuhoCleaner 1.15.6 深度体验:macOS 系统清理与卸载优化工具评测
macos·开源软件
鸿蒙程序媛2 小时前
【工具汇总】git 常用命令行汇总
大数据·git·elasticsearch
Youyzq2 小时前
安装龙虾流程mac
macos·openclaw
虞十三3 小时前
AtomGit 开源入门全攻略:环境搭建 + Git/Docker 实操 + 新手避坑(全平台版)
git·docker·容器
ACGkaka_3 小时前
JDK 版本管理工具介绍:jenv与sdkman(Mac端)
java·macos·sdkman
库奇噜啦呼3 小时前
【iOS】 Blocks
macos·ios·cocoa
__Witheart__4 小时前
Gitblit 后台删除账户 添加权限
git
一块小土坷垃4 小时前
Pearcleaner:一款功能强大的免费开源 macOS 应用清理工具
macos·开源软件
回家路上绕了弯4 小时前
IDEA 2026.1 玩转 Git Worktree:可视化操作,告别分支切换内耗
git·后端
承渊政道4 小时前
【递归、搜索与回溯算法】(递归问题拆解与经典模型实战大秘笈)
数据结构·c++·学习·算法·macos·dfs·bfs