一、错误提示
Push failed
Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.

二、解决方案:
进入该项目的.git文件夹 , 找到 config 文件

双击打开

将 url 修改为 https格式的那个
三、在IDEA中从新push会弹出登陆界面,正确登陆后即可解决该问题
本文解决了一个常见的Git错误:PushFailed,不能从远程仓库读取。通过修改.git/config文件中的URL为https格式,并重新在IDEA中推送,可以解决权限问题。
1001

被折叠的 条评论
为什么被折叠?



