公共(public)仓库上的 git 权限错误?

标签 git github version-control

当我这样做时git clone <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="fe99978abe99978a968b9cd09d9193" rel="noreferrer noopener nofollow">[email protected]</a>:btholt/complete-intro-to-react.git

我得到了错误

Cloning into 'complete-intro-to-react'...
Permission denied (publickey).
fatal: Could not read from remote repository.

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

问题是什么?

最佳答案

当您使用 ssh URL 克隆存储库时, 它尝试使用您的公钥对您进行身份验证。 如果此身份验证失败,则克隆失败。

您可以让公钥身份验证正常工作, 或者您可以使用 https URL 而不是 ssh 克隆存储库,即:

git clone https://github.com/btholt/complete-intro-to-react

关于公共(public)仓库上的 git 权限错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39687911/

相关文章:

git - 如何从 Github 中删除所有陈旧的分支?

git - 如何从 Visual Studio 2015 中删除已删除的 Git 分支

windows - 由于文件名中的字符无效,在 Windows 上克隆存储库时出错

visual-studio-2008 - 将 .Net 项目上传到 Web 服务器的最佳实践

javascript - JetBrains GoLand 永久失去版本控制状态 : need manual refresh on any change

git - 我为什么要使用 .gitignore?

git - merge github上不同作者的代码

Git 删除不在 remotes/origin 中的远程分支

github - 在 Kaggle 中下载文件给出 - 'failed: Temporary failure in name resolution' 错误

eclipse - 检查版本控制时,将 server.xml 放在 tomcat eclipse 项目中的什么位置?