当前位置:   article > 正文

git提交ssh时报错_access denied: deploykey does not support push cod

access denied: deploykey does not support push code

一、
1.报错语句

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

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

  • 1
  • 2
  • 3
  • 4
  • 5

2.应对方法

ls -al ~/.ssh
  • 1

在这里插入图片描述

rm ~/.ssh/id_rsa.pub
rm ~/.ssh/id_rsa
  • 1
  • 2

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

git remote rm origin
  • 1

之后再重新连接

git remote add origin git@xxx.git
  • 1
本文内容由网友自发贡献,转载请注明出处:https://www.wpsshop.cn/w/小小林熬夜学编程/article/detail/418136
推荐阅读
相关标签
  

闽ICP备14008679号