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 **
相关推荐
路溪非溪1 小时前
计算机网络三张表(ARP表、MAC表、路由表)总结
网络·计算机网络·macos
Wulitc9 小时前
GIT管理指令
git
LOLA444413 小时前
如何解压rar格式文件?8种方法(Win/Mac/手机/网页端)
macos·软件需求
可涵不会debug14 小时前
Git 分支管理与多人协作实战指南
git
only-lucky15 小时前
Git克隆 提示证书验证失败解决
git
丁总学Java15 小时前
git reset (取消暂存,保留工作区修改)
git
MYG_G15 小时前
git cherry-pick从一个分支中选择一个或多个提交(commit)并将其应用到当前分支
git
DaphneOdera1716 小时前
Git Bash 配置 zsh
开发语言·git·bash
半桔19 小时前
栈和队列(C语言)
c语言·开发语言·数据结构·c++·git