代码推送git报错Could not read from remote repository

个人账号,仅存一些工作上遇到的问题以及自我学习的一些过程。
背景:
之前项目在svn上,今天领导吩咐说以后要在git上去管理(这里用到的是阿里云效),所以我就成了第一版-.-!
遇到的问题
推送报错Could not read from remote repository 是.ssh的问题。意思是没有权限读取。
解决:ssh-****** -t rsa -C “github的邮箱地址”
因为先前重做系统原因。这个命令报错。找不到.ssh文件。最后才知道.ssh文件是自己创建的。(太蠢了-_-||)
创建之后:
在github上将生成的ssh的public key(id_rsa.pub中的内容)粘到个人账户的setting>SSH and GPG keys > New SSH key下。
代码推送git报错Could not read from remote repository
Android studio需要设置的内容:
file----settings-----Version Control -------GitHub 不选择
代码推送git报错Could not read from remote repository
这样再重新推送一下就可以成功了。