Git使用:在Git pull时遇到的Error及解决方法
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就解决了
声明:该文观点仅代表作者本人,牛骨文系教育信息发布平台,牛骨文仅提供信息存储空间服务。