macOS 执行git命令时出现fatal: protocol ‘git@https‘ is not supported

 

 出现fatal: protocol 'git@https' is not supported

解决方案:打开当前文件夹 shift+command+. 显示隐藏文件 打开.git文件夹下的config

 

将git@删去

 

 然后重新设置远程仓库

这样就成功啦

如果出现

fatal: 'origin' does not appear to be a git repository

fatal: Could not read from remote repository.

Please make sure you have the correct access rights

and the repository exists.

也可以试着这样做  反正在我的电脑上可以

  


版权声明:本文为paradoxaaa_原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。