Git常见错误整理

简介: 错误1:Git: fatal: The remote end hung up unexpectedly解决办法:> git config --global http.

错误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 54
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
Everything 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请参考 Git配置SSH Key

错误3:error:The branch ‘testing’ is not fully merged
解决办法:强制删除

# 普通删除
git branch -d branch_name

# 强制删除
git branch -D branch_name
目录
相关文章
|
网络安全 开发工具 git
git 出现错误:kex_exchange_identification: read: Connection reset by peer fatal
git 出现错误:kex_exchange_identification: read: Connection reset by peer fatal
git 出现错误:kex_exchange_identification: read: Connection reset by peer fatal
|
开发工具 git
git 出现502错误后用depth一步一步来
公司有个项目的git仓库,因为一些二进制文件也放在里面,版本迭代后,整个仓库特别大,有好几G。 直接git clone是不行的,会报这样的错误: error: RPC failed; HTTP 502 curl 2...
3644 0
|
Shell 开发工具 git
IDEA工具操作Git------远程仓库管理中出现的错误(Gitee版)
需要先Pull一下 右键项目--->Git--->Repository--->Remotes 把远程项目下载到本地
572 0
IDEA工具操作Git------远程仓库管理中出现的错误(Gitee版)
|
缓存 开发工具 git
一日一技:使用 Git 在错误的分支上修改了代码怎么办?
一日一技:使用 Git 在错误的分支上修改了代码怎么办?
1014 0
一日一技:使用 Git 在错误的分支上修改了代码怎么办?
|
开发工具 git
Git - 解决 git push 出现 error: failed to push some refs to 错误
Git - 解决 git push 出现 error: failed to push some refs to 错误
2426 0
Git - 解决 git push 出现 error: failed to push some refs to 错误
|
开发工具 git
由于不知道Git怎么删除之前错误的代码提交commit,我被开除了!
由于不知道Git怎么删除之前错误的代码提交commit,我被开除了!
354 0
由于不知道Git怎么删除之前错误的代码提交commit,我被开除了!
|
开发工具 git 芯片
CH2601 CDK工具git配置错误demo无法下载问题及flash download失败问题记录,新手必看~
CH2601 CDK工具git配置错误demo无法下载问题及flash download失败问题记录,新手必看~
917 0
CH2601 CDK工具git配置错误demo无法下载问题及flash download失败问题记录,新手必看~
|
开发工具 git
git 上传错误 error: failed to push some refs
git 上传错误 error: failed to push some refs
553 0
|
开发工具 git
Git - git 出现 fatal: refusing to merge unrelated histories 错误
Git - git 出现 fatal: refusing to merge unrelated histories 错误
674 0
|
开发工具 git
git 删除 提交错误的 commit, 本地与远程
## 前景 在使用 git 工作时, 难免会出现 commit 了一些不想提交的内容, 或者 commit 的时候 commit 的日志不太满意想要进行修改。
4693 0