[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