名称更改后无法推送到存储库

时间:2019-12-12 12:01:17

标签: github

我正在使用的存储库的名称已更改(我想可能是问题所在)。

我做了these steps,该名称在计算机上已更新,但是当我尝试推送内容时,出现了以下消息:

The authenticity of host 'github.com (140.82.118.3)' can't be established.
RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6xxxxx.
Are you sure you want to continue connecting (yes/no/[fingerprint])?

在写了是之后

Warning: Permanently added 'github.com,140.82.118.3' (RSA) to the list of known hosts.
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.

再次尝试推送:

git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.

该存储库由我创建,之后其他人更改了名称。

有什么建议吗?

1 个答案:

答案 0 :(得分:1)

您是否更新了网址?

$ git remote set-url origin new_url