git clone https://github.com/XX/XX.git
git clone 出错,提示信息为:
error: RPC failed; curl 56 OpenSSL SSL_read: SSL_ERROR_SYSCALL, errnffo 10054
atal: the remote end hung up unexpectedly
atal: early EOF
fatal: unpack-objects failed
原因:同步数据过大,通信缓存过小
解决方案:
git config --global http.postBuffer 524288000
若无效,则继续提高通信缓存
git config --global http.postBuffer 1048576000
若无效,则继续提高通信缓存
git config --global http.postBuffer 2097152000
(查看配置: git config --list)
若无效:
git clone https://github.com/XX/XX.git 修改为:
git clone https://github.com/XX/XX.git --depth 1
或者修改为:
git clone git://github.com/XX/XX.git