permisson denied(publickey)
Topic source把 git@github.com:hamartia0/gitskills.git 换成 http://github.com:hamartia0/gitskills.git 就可以了。
在git协议中把冒号后的hamartia0解析成用户,而你不是hamartia0这个用户,你肯定没有权限用人家的用户名了。
在https中hamartia0就变成一个路径了。可以理解为浏览器能下载的路径你才能clone。
为啥我直接就成功了?
我的git config --global user.email是 xxx@stu.xidian.edu.cn
我的github仓库中,email是qq邮箱,也成功了呀?
个人觉得觉得原因不在这儿
- 1
好黑的一只羊
$ git clone git@github.com:hamartia0/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.
登陆git的用户名和邮箱与github的用户名和邮箱不一致,这种情况下就不能克隆吗?但是前一章节,把本地仓库推送到远程仓库是成功了的。