我有两个 github 帐户,但我已经有一段时间没有使用其中一个了。
今天我决定给它添加一些引用,但是在我的github设置中,ssh key 由于某种原因变成了灰色,所以我无法成功推送。
因此,我必须创建新的 ssh key 。
以后如何避免这个问题?
ERROR was: Permission to one-of-my-acc denied to Name.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
最佳答案
您描述的错误是您在没有正确键的情况下尝试 fetch/push/push
时遇到的错误。
在您的情况下,您的 key 似乎是 revoke
- 变为非事件状态。
我在 github
中找不到任何关于它的文档,根据他们的文档,没有办法手动撤销
key 。
您遵循的解决方案是正确的。
关于git - 为什么我在 github 上的一个 ssh key 变成灰色(它是绿色的)并且不再起作用了?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36632835/