博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Git常见错误整理
阅读量:7217 次
发布时间:2019-06-29

本文共 1015 字,大约阅读时间需要 3 分钟。

错误1:Git: fatal: The remote end hung up unexpectedly

解决办法:

> git config --global http.postBuffer 1048576000> git config --global http.postBuffer 1048576000

错误2:Git error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54

错误信息:

Total 116323 (delta 81906), reused 116320 (delta 81905)POST git-receive-pack (130907163 bytes)error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54fatal: The remote end hung up unexpectedlyfatal: The remote end hung up unexpectedlyEverything up-to-date

git 在 pull 或者 push 一个大项目时,可能会碰到出现如题所示的错误。

解决办法:

网络上往往都会说这是由于大文件造成的提交或者拉取失败。但是,经过本人测试,如果是 errno 56,那么应该是有大文件或者提交缓存方面的问题。而 errno 54 则不是这个问题。对于 56 错误的解决方式与网络上大部分文章的一致。都是增大缓存配置,比如下面就是配置提交缓存为 500M。

> git config http.postBuffer 524288000> git config https.postBuffer 524288000

对于 errno 54 这个错误,经尝试 http 或者 https 协议都无法正常提交。必须改为 ssh 方式来提交代码。也就是必须使用公私钥的方式进行账号验证,并提交代码。

Git配置SSH Key请参考

错误3:error:The branch ‘testing’ is not fully merged

解决办法:强制删除

# 普通删除git branch -d branch_name# 强制删除git branch -D branch_name

转载地址:http://lexym.baihongyu.com/

你可能感兴趣的文章
Caml语句 查询分配给当前用户及当前组
查看>>
记一次源码分析
查看>>
php版本引起的const问题
查看>>
js实现60s倒计时效果
查看>>
【POJ 2176】Folding
查看>>
redis的过期策略以及内存淘汰机制
查看>>
阿牛的EOF牛肉串
查看>>
随笔2013/2/13
查看>>
笨办法32循环和列表
查看>>
java序列化
查看>>
谈谈NITE 2的第一个程序HandViewer
查看>>
VS2008 未响应 假死
查看>>
html5、css3及响应式设计入门
查看>>
Win10還原成最乾淨的狀態
查看>>
Java_InvokeAll_又返回值_多个线程同时执行,取消超时线程
查看>>
SaltStack作业
查看>>
单例设计
查看>>
springboot+缓存
查看>>
/*10个filter的属性*/ ---毛玻璃效果
查看>>
折半查找习题解答
查看>>