ubuntu使用Git fatal: Unable to find remote helper for 'https'

 

错误如下:

 

 

image.png

root@ubuntu-docker:/server# git clone https://github.com/zhaojunlike/nodejs-spider-shangbiao2.git

 

正克隆到 'nodejs-spider-shangbiao2'...

 

fatal: Unable to find remote helper for 'https'

我本地的ubuntu虚拟机,尝试克隆的时候报错,我翻阅了一下google的答案,下面是其中一个可行的方案总结。

#apt remove git

#apt install git-core

我们在/usr/lib/git-core可以发现一堆git可执行文件,我们需要让 git-remote-https可用,我需要把这个路径加入到我们的PATH

image.png

#vim /etc/profile

或者

#echo "export PATH=/usr/lib/git-core:\$PATH">>/etc/profile

让环境变量生效

#source /etc/profile

image.png

在修改好path以后,git已经可以克隆

image.png

看完如果对您有用,麻烦您给个评论或者给个赞吧,谢谢

ubuntu使用Git fatal: Unable to find remote helper for 'https'

 

Godtoy 关注

2017.04.18 09:33* 字数 143 阅读 736评论 0喜欢 1

错误如下:

 

 

image.png

root@ubuntu-docker:/server# git clone https://github.com/zhaojunlike/nodejs-spider-shangbiao2.git

 

正克隆到 'nodejs-spider-shangbiao2'...

 

fatal: Unable to find remote helper for 'https'

我本地的ubuntu虚拟机,尝试克隆的时候报错,我翻阅了一下google的答案,下面是其中一个可行的方案总结。

#apt remove git

#apt install git-core

我们在/usr/lib/git-core可以发现一堆git可执行文件,我们需要让 git-remote-https可用,我需要把这个路径加入到我们的PATH

image.png

#vim /etc/profile

或者

#echo "export PATH=/usr/lib/git-core:\$PATH">>/etc/profile

让环境变量生效

#source /etc/profile

image.png

在修改好path以后,git已经可以克隆

image.png

看完如果对您有用,麻烦您给个评论或者给个赞吧,谢谢

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值