fatal: I don't handle protocol 'git@http' 解决

新建的git,在git push的时候遇到了报错“fatal: I don't handle protocol 'git@http'”

网上搜这个错误基本都是“fatal: I don't handle protocol 'git@https'”的情况,最终在同事的帮助下解决:

 

解决办法:

打开.git/config

将[remote “origin”]选项下的url的值从git@http开头改为http开头,即去掉最前面的git@

 

转载于:https://www.cnblogs.com/roggeyue/p/11169771.html