IDEA 使用Git推送项目报错Push failed: Could not read from remote repository

Can’t finish GitHub sharing processSuccessfully created project ‘Python-Spiders’ on GitHub, but initial push failed:Could not read from remote repository.

上面是抛出的错误:

解决方案:

                                                    setting->Version Control ->Github

取消勾选Clone git repositories using ssh

Push failed: Could not read from remote repository.

如果是只抛出了这一个错误

解决方案:鼠标右键->Git->Repository->Remotes

点击修改为代码需要上传的仓库

格式是这样的https://github.com/xxxxx/xxxxxx.git

这里可以直接进入到自己的GitHub仓库直接复制url然后加上.git后缀就行了

你可能感兴趣的:(IDEA 使用Git推送项目报错Push failed: Could not read from remote repository)