git学习笔记(2) -- "fatal: Could not read from remote repository. Please make sure you have the corre"

来源:互联网 发布:c语言精品课程网站 编辑:程序博客网 时间:2024/06/01 09:26
$ git clone git@github.com:henry199101/gitskills.git
Cloning into 'gitskills'...
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 不一致

1, 删除用户目录下的.ssh 文件夹,删除Github上刚建立的SSH keys

2,在C盘\当前用户目录下 右键→Git Bash 执行教程中的生成 SSH Key 命令

3,然后再在Github里面新建SSH Keys


参考文献:

1.创建SSH Key

http://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000/001374385852170d9c7adf13c30429b9660d0eb689dd43a000

2.

从远程库克隆

http://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000/001375233990231ac8cf32ef1b24887a5209f83e01cb94b000

阅读全文
0 0
原创粉丝点击