10

Cloud9中,每当我尝试使用终端推送到 github 存储库时,我都会收到以下错误:

fatal: Authentication failed

我在用

git push origin master

推送到存储库。我在 github 中添加了我的 ssh 密钥,所以这不是问题。
在此处输入图像描述

4

1 回答 1

14

可能您将您的存储库克隆到 Cloud9 中。您可能需要将远程来源从 https 更改为 SSH,否则身份验证错误将持续存在。

使用Douglas C. Ayers 的 Cloud9 FAQ中的解决方案 #2 :

git remote set-url origin YOUR_REMOTE_SSH_URL

于 2013-11-12T18:23:03.130 回答