Git使用:在Git pull時遇到的Error及解決方法
阿新 • • 發佈:2019-01-04
1. Error:
fatal: The remote end hung up unexpectedly
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
解決方法:
git config --global http.postBuffer 524288000
需要注意的是http.postBuffer 後,單位是b,524288000B也就500M左右
2. Error:
error: RPC failed; curl 56 SSLRead() return error -3600 KiB/s
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
解決方法:
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
3. git pull時 ,報錯說本地有 change,需要merge
解決方法:
先執行 git checkout {fileName}
再執行一次git pull就解決了