当前位置:   article > 正文

git 常见报错整理_post git-upload-pack

post git-upload-pack
1、SSL certificate problem: certificate has expired

错误如下:

Git Pull Failed

unable to access ‘https:/xxxxxxx.git/’: SSL certificate problem: certificate has expired

解决方案:通过git bash打开git命令行,输入: git config --global http.sslVerify false 即可

 git config --global http.sslVerify false
  • 1
2、Git报错-refusing to merge unrelated histories

错误如下:

Git Pull Failed
POST git-upload-pack (316 bytes)
From https://gitee.com/specking/study

branch master -> FETCH_HEAD
= [up to date] master -> origin/master
refusing to merge unrelated histories

原因:出现这个问题的最主要原因还是在于本地仓库和远程仓库实际上是独立的两个仓库。假如我之前是直接clone的方式在本地建立起远程github仓库的克隆本地仓库就不会有这问题了

解决方案:命令行输入

git pull origin master --allow-unrelated-histories
  • 1
3、clone时出现RPC failed; curl 56 OpenSSL SSL_read: SSL_ERROR_SYSCALL, errfno 10054

错误如下:

Clone failed
RPC failed; curl 56 OpenSSL SSL_read: Connection was reset, errno 10054
663 bytes of body are still expected
the remote end hung up unexpectedly
early EOF
index-pack failed

原因:原因:出现这种问题可能是文件太大了
curl的postBuffer的默认值较小,需要在终端调整为到合适的大小,这里调整到500M

解决方法:

命令行输入输入以下3个命令:

git init

git config http.postBuffer 524288000

git config http.sslVerify "false"

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小惠珠哦/article/detail/996220
推荐阅读
  

闽ICP备14008679号