背景
使用 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