Git clone 报错:fatal: protocol 'https' is not supported解决办法
git clone https://gitee.com/qqkevin/2_mqtt_test_onenet.git
Cloning into ‘2_mqtt_test_onenet’…
fatal: protocol ‘https’ is not supported
解决办法:
方法1:不用https,换用ssh去clone(如果有ssh选项)
如:git clone git@gitee.com:qqkevin/2_mqtt_test_onenet.git
方法2:
在git的安装目录找到 libcurl-4.dll 文件的位置,并移动到其他位置。
重新运行git bash
clone,如果可以了就ok。如果不行。
进入文件夹,按ctrl+z,按两次。(恢复刚移动的两个文件)
重新运行git bash
再去clone,就可以了。至少我是这样可以clone的。
还没有评论,来说两句吧...