git fatal: I don't handle protocol 'https'问题的解决

时间:2023-03-09 15:34:50
git fatal: I don't handle protocol 'https'问题的解决

问题重现

新建的仓库,再把本地的代码往上push的时候Git提示

$ fatal: I don't handle protocol 'https'

问题分析

Git是支持https的,这点毋庸置疑,所以肯定不是Git的问题。

那问题可能出现在自己进行remote add的时候可能是Github仓库的地址出了问题。

解决方法

删除错误的Git仓库地址,重新添加即可

$ git remote rm origin
$ git remote add origin yourURL