[SourceTree] - 使用内置 PuTTY 克隆项目出现 fatal: early EOF 问题之解决

背景

使用 PuTTY 克隆 Asp.Net Core 项目失败。

错误

git -c filter.lfs.smudge= -c filter.lfs.required=false -c diff.mnemonicprefix=false -c core.quotepath=false clone --branch DEV git@bitbucket.org:test.git "D:\Test"
Cloning into 'D:\Test'...
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

参考资料

https://blog.csdn.net/DJY1992/article/details/50604937

posted @ 2018-03-26 11:05  jinzesudawei  阅读(6569)  评论(0)    收藏  举报