输入命令行 $ git push origin master
出现下面的错误提示:
$ git push origin master
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
解决:
重新设置ssh公钥
$ ssh-keygen -t rsa -C "YOUR EMAIL"
复制文件 ssh->id_rsa.pub的内容,粘贴到github New SSH Key中。
重新提交即可。