linux - 嘿,我正在尝试学习 git,但我遇到了致命错误:无法从远程仓库读取
问题描述
我在 Github 上注册,然后创建了名为 lgit(“learn git”)的私有仓库,至少尝试从终端测试运行命令,但在尝试将仓库克隆到我的机器时出现错误。
r3tr0@iCBM:~/test/gittest$ git clone git@github.com:s0ur48h/lgit-rep.git
Cloning into 'lgit-rep'...
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
解决方案
这个问题是因为您没有在 github 中配置 SSH 密钥,我认为这可能会有所帮助:
也可能是因为您的身边也没有配置 ssh 密钥。
推荐阅读
- mysql - 在 mysql WorkBench 中导入 JSON 文件时有 0 条记录
- java - Spring Boot 数据存储库上的复合主外键
- java - 双超级通配符
- reactjs - 材质 UI 是否从主题中其他地方的调色板中引用颜色?
- swift - Swift - 如何从 healthStore.preferredUnits 中提取 HKUnit ..?
- c - GMP lib:通过引用传递并使用 malloc 分配所有内容后的 mpz_clear() 内存管理问题
- powershell - Get-Content -旧 Shell 的原始替代品
- c++ - 将右值分配给左值引用
- java - 如何使用嵌套的for循环在java中输出功率表?
- git - Undestanding Meld 3 路合并改变流向