问题描述:
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.
克隆命令:
git clone git@github.com:zhangxxxx/gitskills.git
解决办法:
将“git@github.com:”替换成“https://github.com/”,于是完整的命令就是:
git clone https://github.com/zhangxxxx/gitskills.git
原因分析:
git@github.com: 此处指你远程库(github)的地址,在命令中要用正确的地址替换掉。