0

我正在尝试将我的代码推送到我的 github 帐户,但是每当我尝试时,我都会得到这个

Pushing to git@github.com:AlphaModder/Space-Dimension-Mod.git
Permission denied (publickey).
fatal: Could not read from remote repository.

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

问题:如何避免“权限被拒绝”?GitHub 远程地址是否有效?

4

1 回答 1

6

我建议您使用 https 地址作为您的远程“来源”:

https://github.com/AlphaModder/Space-Dimension-Mod.git

这将避免必须处理 ssh 设置的所有复杂性。
另外,您也可以缓存您的凭据

如果你确实需要一个 ssh 地址...然后查看例如“ ssh,github,it doesn't work ”。

于 2013-02-01T21:45:14.443 回答