我是靠谱客的博主 忧伤星月,这篇文章主要介绍git push 几点报错的解决方式,现在分享给大家,希望可以做个参考。

错误一:

fatal: Out of memory, malloc failed (tried to allocate 3194304000 bytes)
error: failed to push some refs to 'https://github./xxx.git'
 

解决:

桌面内存占用太大,关掉一些后就能正常push了。(比如我关掉了了Wallpaper Engine, 这个都能引发错误,脑壳疼)
还不能push的话需要设置

复制代码
1
git config --global pack.windowMemory 50m 

错误二:10054

fatal: unable to access 'https://github.com/xxx.git/': OpenSSL SSL_read: Connection was reset, errno 10054
 

解决:

网络不稳定导致,pycharm终端输入命令,或在项目所在文件夹git brash here

复制代码
1
2
git config --global http.sslVerify "false"

错误三:443

Failed to connect to github.com port 443: Timed out

github官网可以访问,不能push

解决:

pycharm 终端:

复制代码
1
git config --global --unset http.proxy

【开发工具的那些故事】git问题记录(一): Failed to connect to github.com port 443: Timed out_Yangy的博客-CSDN博客

 错误四:GnuTLS recv error (-54)

ubuntu下,git push 报错

GnuTLS recv error (-54): Error in the pull function.

解决:

打开终端运行:

复制代码
1
gedit ~/.bashrc

而后在配置文件的最下面加上这三行

复制代码
1
2
3
export GIT_TRACE_PACKET=1 export GIT_TRACE=1 export GIT_CURL_VERBOSE=1

而后保存退出后运行:

复制代码
1
source ~/.bashrc  

使配置文件生效

最后

以上就是忧伤星月最近收集整理的关于git push 几点报错的解决方式的全部内容,更多相关git内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(110)

评论列表共有 0 条评论

立即
投稿
返回
顶部