[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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM