解决 git clone 报错 fatal: HTTP request failed

问题背景:

git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim

问题现象:

执行后报错:

1. error while processing: https://github.com/VundleVim/Vundle.vim.git/info/refs

2. fatal: HTTP request failed

问题排查:

浏览器中直接请求 https://github.com/VundleVim/Vundle.vim.git/info/refs, 浏览器返回:

 
  1. Please upgrade your git client.
  2. GitHub.com no longer supports git over dumb-http: https://github.com/blog/809-git-dumb-http-transport-to-be-turned-off-in-90-days

问题原因:

综上分析是 git version 版本过低造成

问题解决:

升级 git client 版本

 
  1. yum install curl
  2. yum install curl-devel
  3. yum install zlib-devel
  4. yum install openssl-devel
  5. yum install perl
  6. yum install cpio
  7. yum install expat-devel
  8. yum install gettext-devel
 
  1. wget http://www.codemonkey.org.uk/projects/git-snapshots/git/git-latest.tar.xz
  2. xz -d git-latest.tar.xz
  3. tar xvf git-latest.tar
  4. cd git-xxxx-xx-xx
  5. autoconf
  6. ./configure
  7. make && make install

猜你喜欢

转载自blog.csdn.net/xianjie0318/article/details/81219995