美文网首页
git clone出现问题

git clone出现问题

作者: KyoDante | 来源:发表于2020-03-12 23:57 被阅读0次
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

通过设置postBuffer的数值可以解决部分问题。有部分问题实际是因为网络访问而导致的,所以此时需要”代理“。

git config --global http.postBuffer 524288000
git config --list //查看设置的config

设置代理可以解决速度太慢的问题:(注:如果使用虚拟机的话,设置网络为NAT,而且下面的127.0.0.1要改成宿主机的ip,端口号一般为1080,根据代理的端口不同而不同。)

git config --global http.proxy 'socks5://127.0.0.1:1080'
git config --global https.proxy 'socks5://127.0.0.1:1080'

取消代理

git config --global --unset http.proxy
git config --global --unset https.proxy

相关文章

  • 解决GitLab git clone fatal: Authen

    出问题情形:在cmd中使用git clone命令clone公司代码时出现问题:fatal: Authenticat...

  • git clone出现问题

    通过设置postBuffer的数值可以解决部分问题。有部分问题实际是因为网络访问而导致的,所以此时需要”代理“。 ...

  • Git Bash使用随记

    clone 代码 git clone git@xxxxxx默认master分支 clone 指定分支代码 git ...

  • git基础操作

    基本: 从master分支clone git clone地址 从指定分支clone git clone -b 远程...

  • Git常用命令(二)

    1、git clone 功能:克隆git仓。 格式:git clone url 用法: clone完成后,已经存在...

  • Git常用命令

    git clonegit clone git clone ssh://git@xxx.xxx.git克隆远程到本地...

  • gitlab

    git clone 不指定分支 git clone 指定分支

  • git 常用命令

    1、clone项目 git clone 仓库地址 直接clone指定分支git clone -b 分支名 仓库地址...

  • EOS开发环境搭建 EOS笔记

    git clone 首先选择好想要存放的目录,然后使用如下git命令clone项目。 $ git clone ht...

  • git远程操作

    git clone 基本命令git clone <远程版本库> <本地目录名> git clone支持多种协议,除...

网友评论

      本文标题:git clone出现问题

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