我在git上克隆一个repo时遇到了麻烦.我已经尝试了几天并且已经尝试了很多解决方案(在大多数情况下问题略有不同但似乎适用)但是没有做任何事情来做出改变.
我已经尝试关闭防病毒和防火墙,但这没有帮助.我也尝试卸载并重新安装网络适配器驱动程序(并重新启动计算机),但这不起作用.
根据我的理解,这是一个网络问题,因为远程服务器一直在挂断,但我无法解决任何问题.
使用git clone -v --progress似乎提供与git clone相同的输出.git clone输出-v --progress https://github.com/mit-cml/appinventor-sources.git
克隆到'appinventor-sources'...
POST git-upload-pack(gzip 1425到774字节)
remote:计数对象:41649,完成.
remote:压缩对象:100%(7/7),完成.
错误:RPC失败; curl 56 OpenSSL SSL_read:SSL_ERROR_SYSCALL,错误10054
致命:远程端意外
致命致命:早期EOF
致命:索引包失败
我现在尝试再次增加缓冲区
git config --global http.postBuffer 1048576000
但仍然没有.
我正在关注远程端的解决方案意外挂起,同时git克隆进行故障排除.
详细信息:
Username for 'https://xiangwan.visualstudio.com': xiangwan
Password for 'https://xiangwan@xiangwan.visualstudio.com':
Counting objects: 85, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (58/58), done.
Writing objects: 100% (63/63), 20.67 KiB | 0 bytes/s, done.
Total 63 (delta 26), reused 1 (delta 0)
error: RPC failed; result=56, HTTP code = 0
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
Everything up-to-date
Run Code Online (Sandbox Code Playgroud)
git config http.postBuffer 524288000,仍然是错误;我使用Bonobo Git Server,一切都很好.我将所有旧的SVN回购转移到GIT,即使是大回购(约3.5 GB)+760提交,"git svn clone"和"git push"工作得非常好.
但是没有一个小存储库:它只有3Mb(未压缩),只有1个提交.我总是得到的信息是:
efrror: RPC Failed; result=22, HTTP code = 404
fatal: The remote end hung up unexpectedly
Run Code Online (Sandbox Code Playgroud)
我已经在这里修改了bonobo webconfig ,我已经完成了这个配置命令.
那么,任何人都有任何其他线索?
我已经通过Git部署到Azure几个月没有出现重大问题,但现在我似乎遇到了一个我无法通过的错误.
我创建了一个新的Azure网站,为活动开发中的项目创建单独的预览链接.我在新网站上设置了Git发布,并尝试推送我在其他Azure网站上使用的相同项目仓库.然而,每次推送尝试都失败了:
error: RPC failed; result=56, HTTP code = 0
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
Run Code Online (Sandbox Code Playgroud)
我已经尝试过一个小得多的提交(只是一个空文本文件),推送顺利进行.
我很确定这个错误是由于我的回购大小(~50mb).由于这是一个新的推动,它需要转移完整的回购尺寸,而不是我已经做了几个月的增量推动.
我试过增加我的http.postBuffer:
git config http.postBuffer 524288000
Run Code Online (Sandbox Code Playgroud)
但我的推动仍然失败.
Azure是否需要增加它收到的POST请求的大小?或者还有另一种我不知道的修复方法吗?
有什么建议?
更新:
这是一个已知问题.它(到目前为止)已经缩小到与Mac和https相结合的问题.您可以在MSDN和GitHub上关注问题线程.