【git】git--fatal: Could not read from remote repository.的解决办法

设置远端仓库地址  git remote set-url origin 你的远端地址

git push origin master出现以下情况:


解决办法:删除当前key,然后重新生成key,


会在本地C:\Users\你的用户名.ssh生成文件夹,里面有id_rsa和id_rsa.pub两个文件 
然后复制id_rsa.pub文件里面的内容,到https://github.com/settings/keys新建一个, 
 设置远程地址:(上面新建的) git remote add origin_new 新的地址 git remote –v查看 git push origin_new master重新推送