git问题

作者: oh嘉嘉加加加 | 来源:发表于2020-08-29 14:22 被阅读0次

1.git clone 地址 的时候遇到的问题

error: RPC failed; curl 56 OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 10054
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed`

原因:

这是因为服务器的SSL证书没有经过第三方机构的签署,所以才报错。解决方案如下:
第一步,克隆远程仓库时,用env命令设置GIT_SSL_NO_VERIFY环境变量为”ture”,并同时调用正常的git clone命令。
第二步,在克隆完毕的仓库中将http.sslVerify设置为”false”。

解决方法

env GIT_SSL_NO_VERIFY=true git  clone 地址
//下载结束后
git config http.sslVerify "false"

另外一个错误

error: RPC failed; curl 18 transfer closed with outstanding read data remaining
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

原因:

tag 文件太多 通过只clone深度为一的方法解决

解决方法

git  clone 地址  --depth 1

相关文章

  • 本地新建文件夹和github仓库连接 出现问题

    问题:git add . 解决:git init 问题:git commit -m '测试' 解决:git pul...

  • Git的使用

    Git 本文章是记录Git日常使用的问题集合 问题 合并不同的git仓库 问题描述 该需求是在做supermark...

  • 最简洁的Git介绍

    一、解决问题 1、Git原理;2、Git的常见操作;3、Git常见问题以及相关操作; 二、Git原理 1、四大区域...

  • x264 Android交叉编译

    x264 git clone http://git.videolan.org/git/x264.git 问题:在a...

  • 3.Git常见问题

    1.failed to push some refs to git 'git地址' 问题详情:$ git push...

  • Windows git remote: HTTP Basic:

    1 问题描述: git push/ git fetch/ git pull,报 HTTP Basic: Acces...

  • [Git]Git相关问题

    1.fatal: The upstream branch of your current branch does ...

  • Git

    Git使用问题 Git: 问题:身份认证: -出现端口22(老师解决,待写)-出现ip地址不对-出现git不上文件...

  • git 问题

    mac下git clone 出现fatal: unable to access 'https://github.c...

  • git问题

    谁知道如何让Git Init Hear显示?

网友评论

      本文标题:git问题

      本文链接:https://www.haomeiwen.com/subject/cmtjsktx.html