1. 程式人生 > >Successfully created project on GitHub but initial push fail Could not read from remote repository.

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

最近由於給電腦升級,重新搭建了開發環境,但是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