我的git客户端在尝试克隆存储库一段时间后反复失败,出现以下错误。
这里的问题是什么?
注意:我已经向GIT托管提供商注册了我的SSH密钥
Receiving objects: 13% (1309/10065), 796.00 KiB | 6 KiB/s
fatal: The remote end hung up unexpectedly
我的git客户端在尝试克隆存储库一段时间后反复失败,出现以下错误。
这里的问题是什么?
注意:我已经向GIT托管提供商注册了我的SSH密钥
Receiving objects: 13% (1309/10065), 796.00 KiB | 6 KiB/s
fatal: The remote end hung up unexpectedly
当前回答
对我来说唯一有效的方法是使用HTTPS链接而不是SSH链接克隆回购。
其他回答
对我来说,问题是安装在MacOS上的诺顿安全。一旦我临时禁用防火墙和其他诺顿保护,我的git推送工作正常。
使用SSH而不是http,这不是这个问题的一个好答案,但至少它对我有用
使用SSH:
如果您将postBuffer增加到524288000 (500mb), 1048576000 (1GB)和2147483648 (2GB),但问题没有解决,我的建议是使用SSH克隆或拉出存储库。生成SSH密钥对
我把它改成了SSH地址,一切都恢复了正常工作。
当我通过ssh克隆存储库时,建议的解决方案都不适用。然而,我能够使用https克隆,然后后来将远程更改为ssh通过:
git remote set-url origin git@github.com:USERNAME/REPOSITORY.git
I was doing git push from my OS X El Capitan Mac. I was getting same error, I tried everything to fix, what I found on google/stackoverflow. As far as version is concerned I am using fairly latest version of github which is 2.7.4. I have create a project in my local system, and I wanted this to be public in my github account. Project size was not around 8MB. I noticed that when I was pushing some files of size around 1.5MB, it was pushing properly, but with large size failed for me, with same error,
我唯一的选择是在MB块中推送更改。现在我已经推送了所有更改。这是我的工作,直到我得到这个解决方案。
因此,您也可以尝试在多次提交中推动更改。或者如果你有多个文件夹,你可以按每个文件夹推送更改(如果文件夹大小不大)。
希望这将有助于你继续工作的项目。