1. 程式人生 > >android studio 用git從遠端倉庫pull和push發生的錯誤

android studio 用git從遠端倉庫pull和push發生的錯誤

發生的錯誤:

Push failed: Failed with error: fatal: Could not read from remote repository

Fetch failed: fatal: Could not read from remote repository

因為是用命令列的ssh 的方式clone下來的程式碼,然後用studio開啟後,本地的commit沒問題,但是向遠成倉庫pull和push都出現的這種問題.

問題的原因應該就是ssh key的配置有問題

所以開啟Setting->Version Control ->Git 檢視SSH executable的選項,看下圖:


我的原來的Native,然後換成Built-in就正常了,但是網上好多都是說應該選擇Native這個選項,但是我這不一樣,我也不知道為什麼了....