【原创】解决 git clone 报错 fatal: HTTP request failed

blogdaren 2018-03-12 抢沙发 2172人次

问题背景:

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, 浏览器返回:

Please upgrade your git client.
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 版本

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




版权声明:除非注明,本文由( blogdaren )原创,转载请保留文章出处。

本文链接:【原创】解决 git clone 报错 fatal: HTTP request failed

发表评论:

您的昵称:
电子邮件:
个人主页: