解决 :android studio 提交代码到git/github失败 Could not read from remote repository

在第一次把项目提交到github或者复制原来的项目进行提交的时候会出现 Could not read from remote repository这个错误;但是打开github的时候,仓库已经创建,只是代码未能上传成功;
解决步骤:

前提:已经将该项目设为git 仓库。

这时,打开该项目目录–>.git文件夹–>用notepad打开config文件,问题就在url上:

解决 :android studio 提交代码到git/github失败 Could not read from remote repository

解决 :android studio 提交代码到git/github失败 Could not read from remote repository

将url修改成你的github路径,比如我的github路径:

url=https://github.com/66668/IsIs-masteer.git
然后回到android studio 提交就没问题了: