运行git push时出错,提示Permission denied (publickey)

1:运行git push时出错,提示Permission denied (publickey)

原因:没有在github添加本地ssh的公钥

参考:https://blog.csdn.net/u013894429/article/details/78960813

2:error: src refspec maste does not match any.

原因:github的remote上已经有了文件

解决:此时应当先pull一下,即:

  git pull origin master

然后再进行:

  git push origin master

posted @ 2018-05-26 18:21  WorldsCollide  阅读(50)  评论(0)    收藏  举报