美文网首页
sourcetree 拉取较大容量库时,遇到的拉取错误 FATA

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

作者: 星星之火666 | 来源:发表于2019-04-30 16:17 被阅读0次
  • 问题类型:(拉取错误)
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 问题

相关文章

网友评论

      本文标题:sourcetree 拉取较大容量库时,遇到的拉取错误 FATA

      本文链接:https://www.haomeiwen.com/subject/jyjvnqtx.html