【问题标题】:Git push "permission denied"Git推送“权限被拒绝”
【发布时间】:2013-01-17 06:48:31
【问题描述】:

我正在尝试将我的代码推送到我的 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 远程地址是否有效?

【问题讨论】:

标签: git github push public-key


【解决方案1】:

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

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

这样可以避免处理 ssh 设置的所有复杂性。
另外,您可以cache your credentials too

如果您确实需要 ssh 地址...然后查看例如“ssh,github,it does not work”。

【讨论】:

  • 这很完美。在将远程源修改为 .git/config 中的上述指定格式后,我可以提供我的凭据...谢谢
猜你喜欢
  • 2018-10-24
  • 2014-02-01
  • 2015-12-19
  • 2011-12-24
  • 1970-01-01
  • 2012-11-20
  • 1970-01-01
  • 2018-03-05
  • 2013-02-28
相关资源
最近更新 更多