window下使用git克隆github遇到fatal: protocol '–https' is not supported

问题描述:
当使用 win10 下的 git 进行github克隆时会出现如图所示错误
window下使用git克隆github遇到fatal: protocol '–https' is not supported
在网上查了一下,有说把中间’https’删除操作一遍,在加上试一遍,我操作了依然无果.
window下使用git克隆github遇到fatal: protocol '–https' is not supported
尝试了另一种方式,发现是git需要连接github 才可进行克隆.
操作如下:

1. 在命令行输入: ssh-****** -t rsa -C ‘your email’, 然后一路回车完成 .如:

window下使用git克隆github遇到fatal: protocol '–https' is not supported
会在你的用户目录下的.ssh下创建一个id_rsa文件,主要是放秘钥的.
window下使用git克隆github遇到fatal: protocol '–https' is not supported

2. 登录你的github,进入settings

window下使用git克隆github遇到fatal: protocol '–https' is not supported

3. 再点击 SSH and GPG keys

window下使用git克隆github遇到fatal: protocol '–https' is not supported

4. 点击 new SSH keys

window下使用git克隆github遇到fatal: protocol '–https' is not supported
5 新建SSH秘钥
window下使用git克隆github遇到fatal: protocol '–https' is not supported

5. 顺利clone

window下使用git克隆github遇到fatal: protocol '–https' is not supported