在linux系统下,有时想用git从网上下载code,但报错误,:fatal: Unable to find remote helper for 'https'
下面是我实验过的一个方法:
如果安装了git,应该会找到目录 /usr/libexec/git-core
将这个目录添加到 /root/.bash_profile 中;
PATH=/usr/libexec/git-core:$PATH:$HOME/bin
保存退出,
然后用命令从新启动一下这个文件
$> source /root/.bash_profile
再用git下载你网上的代码就可以了;