錯誤如下:
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的答案叁扫,下面是其中一個可行的方案總結(jié)像啼。
#apt remove git
#apt install git-core
我們在/usr/lib/git-core可以發(fā)現(xiàn)一堆git可執(zhí)行文件,我們需要讓 git-remote-https可用杖玲,我需要把這個路徑加入到我們的PATH
image.png
#vim /etc/profile
或者
#echo "export PATH=/usr/lib/git-core:\$PATH">>/etc/profile
讓環(huán)境變量生效
#source /etc/profile
image.png
在修改好path以后,git已經(jīng)可以克隆
image.png