在git clone过程中遇到The remote end hung up unexpectedly
RPC failed: curl 56 GnuTLS recv error (-54):Error in the pull function.
可以通过
git config --global http.postBuffer 524288000 #httpBuffer加大
git config --global http.masRequestBuffer 100M
git config --global core.compression 0 #压缩配置
#修改配置文件
export GIT_TRACE_PACKET=1
export GIT_TRACE=1
export GIT_CURL_VERBOSE=1
Linux export 命令用于设置或显示环境变量。
GIT_TRACE_PACKET
enables packet-level tracing for network operations.
GIT_TRACE
controls general traces, which don’t fit into any specific category. This includes the expansion of aliases, and delegation to other sub-programs.
Git uses the curl
library to do network operations over HTTP, so GIT_CURL_VERBOSE
tells Git to emit all the messages generated by that library. This is similar to doing curl -v
on the command line.