git push时报错fatal: Could not read from remote repository.

后来发现,出现这个问题是因为仓库地址不对

使用如下命令先查看一下:

$ git remote -v

发现跟github的地址不一致

 

然后在终端输入:git remote set-url origin XXX  

然后重新push就可以了

 

posted @ 2018-03-25 11:29  姗姗醉了  阅读(26407)  评论(0编辑  收藏  举报