git提交ssh时报错

一、
1.报错语句

Access deined: DeployKey does not support push code
fatal: 无法读取远程仓库。

请确认您有正确的访问权限并且仓库存在。

2.应对方法

ls -al ~/.ssh

在这里插入图片描述

rm ~/.ssh/id_rsa.pub
rm ~/.ssh/id_rsa

二、
1.报错语句
error: 远程 origin 已经存在。
2.应对方法

git remote rm origin

之后再重新连接

git remote add origin [email protected]

猜你喜欢

转载自blog.csdn.net/sgsdsdd/article/details/118874572