Git 克隆过程失败,出现 curl 56 错误
Git cloning process failes with curl 56 error
当我尝试从 TFS 克隆存储库时,我遇到了以下错误:
Cloning into 'Repo'...
error: RPC failed; curl 56 Illegal or missing hexadecimal sequence in chunked-encoding
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
通过增加缓冲区大小尝试了很多解决方案,但 none 对我有用。
在 Git 克隆过程中出现类似错误 Git Clone Fails - error: RPC failed; result=56, HTTP code = 200 请尝试 link 中的解决方案。
在执行Git命令之前在命令行中执行以下命令:
1 set GIT_TRACE_PACKET=1
2 set GIT_TRACE=1
3 set GIT_CURL_VERBOSE=1
我遇到了同样的问题,而 commiting/pushing 和 The remote end hung up unexpectedly while git cloning 通过使用像
这样的命令提高缓冲区来帮助我
git config --global http.postBuffer 524288000
问题可能是使用的压缩类型,请尝试不同类型的压缩:
git config --global core.compression 1
或
git config --global core.compression 9
或
git config --global core.compression 0
或
git config --global core.compression 6
很可能其中之一会解决您的问题
对我来说有用的是,因为 git 的内存需求可能会出现此错误。
我已将这些行添加到我的全局 git 配置文件 .gitconfig 中,该文件位于 $USER_HOME
中
即C:\Users\<USER_NAME>\.gitconfig
[core]
packedGitLimit = 512m
packedGitWindowSize = 512m
[pack]
deltaCacheSize = 2047m
packSizeLimit = 2047m
windowMemory = 2047m
当我尝试从 TFS 克隆存储库时,我遇到了以下错误:
Cloning into 'Repo'... error: RPC failed; curl 56 Illegal or missing hexadecimal sequence in chunked-encoding fatal: The remote end hung up unexpectedly fatal: early EOF fatal: index-pack failed
通过增加缓冲区大小尝试了很多解决方案,但 none 对我有用。
在 Git 克隆过程中出现类似错误 Git Clone Fails - error: RPC failed; result=56, HTTP code = 200 请尝试 link 中的解决方案。
在执行Git命令之前在命令行中执行以下命令:
1 set GIT_TRACE_PACKET=1
2 set GIT_TRACE=1
3 set GIT_CURL_VERBOSE=1
我遇到了同样的问题,而 commiting/pushing 和 The remote end hung up unexpectedly while git cloning 通过使用像
这样的命令提高缓冲区来帮助我git config --global http.postBuffer 524288000
问题可能是使用的压缩类型,请尝试不同类型的压缩:
git config --global core.compression 1
或
git config --global core.compression 9
或
git config --global core.compression 0
或
git config --global core.compression 6
很可能其中之一会解决您的问题
对我来说有用的是,因为 git 的内存需求可能会出现此错误。
我已将这些行添加到我的全局 git 配置文件 .gitconfig 中,该文件位于 $USER_HOME
中即C:\Users\<USER_NAME>\.gitconfig
[core]
packedGitLimit = 512m
packedGitWindowSize = 512m
[pack]
deltaCacheSize = 2047m
packSizeLimit = 2047m
windowMemory = 2047m