sourcetree 拉取较大容量库时,遇到的拉取错误 FATA

2019-04-30  本文已影响0人  星星之火666
git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks fetch <拉取库的名字>
FATAL ERROR: Server unexpectedly closed network connection
fatal: early EOF
fatal: the remote end hung up unexpectedly
fatal: index-pack failed

首先,在WIn10系统中,Git 的配置文件位于 C:\Users\<登录用户名>\.gitconfig
使用文本编辑工具打开并加入:
[core]
compression = -1
重新打开 sourcetree , 进行拉取操作,显示以下错误:

git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks fetch <拉取库的名字>
FATAL ERROR: Server unexpectedly closed network connection
fatal: the remote end hung up unexpectedly
fatal: error in sideband demultiplexer

设置 .gitconfig 中的项 [core] compression 为:
[core]
compression = 1
重启软件生效。

附注:

参考链接:SourceTree - 使用内置 PuTTY 克隆项目出现 fatal: early EOF 问题之解决
Git 遇到了 early EOF index-pack failed 问题

上一篇 下一篇

猜你喜欢

热点阅读