【Git】常见报错
原创
©著作权归作者所有:来自51CTO博客作者阿呆小记的原创作品,请联系作者获取转载授权,否则将追究法律责任
文章目录
1、上传大小限制
报错1:error: RPC failed; curl 56 OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 10054
报错2:error: unable to rewind rpc post data - try increasing http.postBuffer
报错3:fatal: the remote end hung up unexpectedly
出现此问题有可能是上传大小限制,所以修改 git
http
传输限制。
git config http.postBuffer 524288000
或者直接修改配置文件(在项目中隐藏的.git
文件夹下的config
中):

修改内容如下:

如果还是不行,可以尝试着利用 .gitignore 文件进行配置,减少项目中不必要的资源文件上传:

返回顶部
2、安全设置问题
报错:curl 56 OpenSSL SSL_read:SSL_ERROR_sysCALL
忽略证书错误,进行如下配置即可:
# 两种方式均可试一试
git config http.sslVerify "false"
git config --global http.sslVerify "false"
3、当前文件夹目录没有初始化为git目录
报错:fatal: not in a git directory
需要 进入到一个 git
仓库执行,也就是文件夹中包含隐藏文件 .git
的项目目录中。
4、未先进行提交
报错:error: src refspec master does not match any
报错:error: failed to push some refs to 'https://gitee.com/xxxxxxx/xxxxx.git'
需要在 push
之前进行 commit
!
返回顶部