Successfully created project on GitHub but initial push fail Could not read from remote repository.

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_15988951/article/details/83380699

最近由于给电脑升级,重新搭建了开发环境,但是Android studio 在分享项目到github上时,出现如下异常:

14:31	Can't finish GitHub sharing process
		Successfully created project 'todo_mvvm' on GitHub, but initial push failed:
		Could not read from remote repository.

控制台信息.png

解决方法.png

搜索了好多文章,最后在stack overflow找到解决方法 ,即将SSH executable Built-in 变为Native,重新push,完美解决。

总结一下出现这类错误的解决方法:

1、保证Android Studio中git.exe 路径配置正确
2、请保证Android Studio中正确配置SSH连接github
3、如图上的解决方法一样,将SSH executable 设置为Native

猜你喜欢

转载自blog.csdn.net/qq_15988951/article/details/83380699