use*_*746 41 windows git curl clone github
我在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克隆进行故障排除.
小智 46
我解决了同样的问题:
git config http.postBuffer 524288000
Run Code Online (Sandbox Code Playgroud)
这可能是因为存储库的大小和git的默认缓冲区大小所以通过上面的操作(在git bash上),git缓冲区大小将会增加.
干杯!
Sha*_*ghi 15
我遇到了同样的问题,@ingyhere 的回答解决了我的问题。
按照他在此处回答中的说明进行操作。
git config --global core.compression 0
git clone --depth 1 <repo_URI>
# cd to your newly created directory
git fetch --unshallow
git pull --all
Run Code Online (Sandbox Code Playgroud)
Sma*_*lns 13
you need to increase the buffer size (it's due to the large repository size), so you have to increase it
git config http.postBuffer 524288000
Run Code Online (Sandbox Code Playgroud)
Althought you must have an initializd repository, just porceed as the following
git init
git config http.postBuffer 524288000
git remote add origin <REPO URL>
git pull origin master
...
Run Code Online (Sandbox Code Playgroud)
Jee*_*ane 12
我有同样的问题,我通过改变我的网络连接解决了它.事实上,我上次的互联网连接速度太慢(45 kbit/s).因此,您应该尝试使用更快的网络连接.
当您第一次在没有网络连接或网络连接不良的情况下推送时会发生这种情况。但是当您再次尝试使用良好的连接 2,3 次时,问题将得到解决。
git config --global http.postBuffer 524288000
Run Code Online (Sandbox Code Playgroud)
在我的情况下工作 - AWS 代码提交
小智 7
我试过“git init”,它对我来说很有魅力。
我从链接Git 推送错误中得到它:RPC 失败;result=56, HTTP code = 200 fatal: 远程端意外挂断了fatal
(基于 Hakan F\xc4\xb1st\xc4\xb1k 的回答)
\n您还可以全局设置 postBuffer,如果您还没有签出存储库,这可能是必要的!
\ngit config http.postBuffer 524288000\nRun Code Online (Sandbox Code Playgroud)\n
| 归档时间: |
|
| 查看次数: |
57414 次 |
| 最近记录: |