2016-11-30 176 views
0

我試圖將我的源代碼提交給我們的本地Git回購。我創建了一個id_rsa鑰匙,並添加了關鍵GitLab,和一個配置文件,其內容如下:未找到Git SSH密鑰

Host [email protected] 
IdentityFile H:\.ssh\id_rsa 

當我在Git中的Bash輸入以下命令推我收到一個錯誤Could not read from remote repository.

$ git push [email protected]:android/myApp.git 

這是以前工作正常,當我從我的C:驅動器工作,但現在我正在服務器驅動器(H :)它似乎並不喜歡它。

我錯過了一些在這裏設置?

回答

1

嘗試編輯這您的配置文件:

Host git.repo.local 
IdentityFile H:\.ssh\id_rsa 
+0

謝謝你的工作! – petehallw