git学习笔记(2) -- "fatal: Could not read from remote repository. Please make sure you have the corre"
·
$ 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
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)