GitHub: 同步失败

GitHub: Failed to Sync

我有一个由多人参与的项目。我可以使用命令提示符手动推送更改,但是当我尝试在我的 GitHub 桌面上同步存储库时,我收到此消息:

Sync failed: The repository doesn't seem to exist anymore. You may not have
access, or it may have been deleted or renamed. 

我已经检查过,它没有被删除或重命名,我不明白无权访问部分,我找不到任何关于它的信息。

我只是想确认我可以使用 GitBash 进行推送和拉取,但是当我使用桌面应用程序上的“同步”按钮时它不会同步,但我可以提交更改。

在我的例子中,原因是我在 Github 的 SSH 密钥有一段时间没有使用,所以它未经验证。如果你 运行 git 在命令行上推送,它会清楚地告诉你这个错误,而桌面则相当模糊。

ERROR: We're doing an SSH key audit.
Reason: unverified due to lack of use
Please visit https://github.com/settings/keys to
approve this key so we know it's safe.

Fingerprint: xx.xx.xx.xx.xx.xx.xx.xx.xx.xx.xx.xx.xx.xx.xx.xx
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

您可以转到 https://github.com/settings/keys/ 和 re-enable 任何未验证的密钥。