【git】解决遇到的问题

目录

[一、error: RPC failed; curl 6 OpenSSL SSL_read: Connection was reset, errno 10054](#一、error: RPC failed; curl 6 OpenSSL SSL_read: Connection was reset, errno 10054)

[二、error: RPC failed; curl 6 OpenSSL SSL_read: Connection was reset, errno 10054](#二、error: RPC failed; curl 6 OpenSSL SSL_read: Connection was reset, errno 10054)


一、error: RPC failed; curl 6 OpenSSL SSL_read: Connection was reset, errno 10054

报错:

原因:在使用 GitLab 进行 push 操作时出现如此错误通常是因为你的推送包(push package)太大了,超过了服务器所允许的大小限制。这个问题可以通过增加 Git 配置文件中的缓存限制来解决。

解决方法:按照以下步骤进行处理:打开终端并切换到项目的根目录。

输入以下命令以增加 Git 中缓存的默认限制:

复制代码
git config --global http.postBuffer 1048576000

该命令将缓存限制增加到 1GB,可以根据需要修改此值。

重新执行 push 命令。

二、error: RPC failed; curl 6 OpenSSL SSL_read: Connection was reset, errno 10054

报错:

原因:远程仓库的文件过大,需要设置本地仓库大小

解决方法:

(1)首先输入如下命令

复制代码
git config http.sslVerify "false"

若出现下列错误:
git config http.sslVerify "false" fatal: not in a git directory

再继续执行 git config --globle http.sslVerify "false" 问题解决

(2)文件大小的上限设置:

复制代码
git config --global http.postBuffer 1048576000

(3)如果还是git代码还是下载失败,则需要继续修改git缓存的大小

push 不上去就把remote换成SSH链接,push时本地分支要和远程分支同名并建立联系。

相关推荐
老友記3 小时前
git cherry-pick使用
git
练习时长一年4 小时前
git常用命令总结
大数据·git·elasticsearch
hadage2336 小时前
--- git 的一些使用 ---
开发语言·git·python
4***V20212 小时前
GitLab Pages配置
git·gitlab·github
CelineCoding12 小时前
git 处理异常操作
git
E***q53913 小时前
Git版本控制常见问题
git
sulikey18 小时前
从入门到精通:如何自己编写高质量的 .gitignore(面向工程实践)
git·gitee·编辑器·gitlab·github·gitignore·gitattributes
青靴21 小时前
轻量级 CI/CD:Git Hooks 自动部署 Node.js 应用(CICD-demo)
git·ci/cd·node.js
哟哟耶耶1 天前
git-git cherry-pick(从分支挑选特定提交-哈希值)更改应用到当前分支
git
无限进步_1 天前
C语言动态内存管理:掌握malloc、calloc、realloc和free的实战应用
c语言·开发语言·c++·git·算法·github·visual studio