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 **
相关推荐
ayaya_mana12 小时前
Notepad--:国产跨平台文本编辑器,Notepad++ 的理想替代方案
linux·windows·macos·编辑器·notepad·notepad--
霖0016 小时前
FPGA的PS基础1
数据结构·人工智能·windows·git·算法·fpga开发
盗骊18 小时前
Git rebase
git
芝麻馅汤圆儿19 小时前
Git Bash
git
六件套是我20 小时前
在idea中git切换分支,但是我的文件没add,没commit
git
Pi_Qiu_20 小时前
Rsync自动化备份平台建设实战
git·自动化·github
布兰妮甜1 天前
Visual Studio Code 跨平台快捷键指南:Windows 与 macOS 全面对比
windows·vscode·macos·编辑器·快捷键
parade岁月2 天前
Git黑科技:让你的配置文件"隐身",再也不用担心误提交!
git
无名咸鱼2 天前
Git与CI/CD相关知识点总结
git·ci/cd
大虫小呓2 天前
本地(macOS)和服务器时间不同步导致的 Bug排查及解决
macos