Git问题:Git clone 时遇到fatal: protocol 'https' is not supported问题解决方案
Git问题:Git clone 时遇到fatal: protocol 'https' is not supported问题解决方案
复现
widows中Git Bash 里执行 clone命令报错protocol ''https'' is not supported

原因
在粘贴地址时使用了 CTRL +V, 在Git Bash中没有效果,然后我们就会使用右键菜单中的粘贴,但是不幸的是,使用 CTRL +V会在Git Bash 中添加一个隐藏的符号 ^?。
在GIt Bash 中你的克隆语句可能显示是这样正常的:
git clone https://gitee.com/qianfanguojin/homework_1.git
但真实语句其实是这样的:
git clone ^?https://gitee.com/qianfanguojin/homework_1.git
链接前面多了符号,协议变成了^https,肯定不能克隆成功,提示协议不支持。
解决
删除https前的空格,手动输入空格