我无法从 github 克隆任何存储库。我总是收到此错误消息
fatal: Could not read from remote repository. Please make sure you have the
correct access rights and the repository exists
我已经处理了以下问题:
- 将我的路径变量设置为
;C:\Program Files (x86)\Git\cmd;和 C:\Program Files (x86)\Git\bin;
- 我已经生成公钥并将
id_rsa.pub
链接到 git
我已查看所有相关链接,但无法解决此问题。
最佳答案
如果您的 ssh key 有问题,您至少可以使用 https url 作为解决方法:
git clone https://github.com/username/reponame
关于 ssh,请确保:
环境变量
HOME
已定义,您的私有(private)/公共(public) ssh key 位于:%HOME%\.ssh\id_rsa %HOME%\.ssh\id_rsa.pub
关于windows - 从 github 克隆存储库失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25958390/