git fatal: Unable to find remote helper for 'https'

来源:互联网 发布:成都网络推广公司排名 编辑:程序博客网 时间:2024/06/05 22:51

今天在拉git仓库的时候碰到这个问题,原因是缺少插件,搜国内的没一个整明白,然后到stack上面看到了这个,然后解决了问题。

方法一:进到git目录,重新编译

$ yum install curl-devel$ # cd to wherever the source for git is$ cd /usr/local/src/git-1.7.9  $ ./configure$ make$ make install

参考文章:https://stackoverflow.com/questions/8329485/unable-to-find-remote-helper-for-https-during-git-clone

方法二:

yum -y install git-http

第二个方法我没测试,因为搞完第一个方法,问题就解决了。第一种方法比较慢,需要重新编译git。

方法三:

用git代替https。我之前也没看到,可以试一下。

git clone --recursive git://github.com/ceph/ceph.git
阅读全文
0 0