【踩坑指南】終端使用git clone項目失敗

當準備克隆一個GitHub的項目時,突然出現瞭如下錯誤:

luvsta:vue-demo aixing$ git clone https://github.com/TigerChain/vue-lesson.git
Cloning into 'vue-lesson'...
remote: Enumerating objects: 22764, done.
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

解決方案:

  1. git config --global http.postBuffer 524288000
  2. 再執行git clone
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章