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

blogdaren 2018-03-12 2评论 4225人次

问题背景:

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

用户评论:

ly
2018-08-06 13:01
更新之后, git --version 出现的版本和之前一样,但问题解决。  很显示git更新了,但又没有更新版本号。
blogdaren
2018-08-06 16:13
@ly:不应该,因缓存原因,有时候安装完毕后,当前终端需要断开重连,再执行 git --version

发表评论:

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