【发布时间】:2012-10-08 02:00:00
【问题描述】:
有人看到这个错误并且知道该怎么做吗?
我正在使用终端,我在root,GitHub存储库存在,我现在不知道该怎么办。
> git push -u origin master
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
【问题讨论】:
-
可能是 .ssh 和授权密钥的权限问题。 SSH 很严格,google 一下。
-
like @bdukes 的回答是使用 https 的命令,它会起作用,Windows 示例:"PS C:\xampp\htdocs> git clone github.com/algolia/instant-search-demo.git"