git把本地库的所有内容推送到远程库上时,出现如下的错误:
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
解决方案:
在.git目录下找到config文件,用nodepad++打开,找到url对应的那一行,重新写为:
url = https://server/username/*your*git*app*.git (比如:url =https://github.com/zhuhengv/demo.git)
改完之后保存,重新git push -u origin master 问题解决。