2016-04-14 59 views
5

混帳: enter image description here不能從GitHub克隆安裝2.1測試版

先後獲得GitHub的與我的帳戶

enter image description here

,但不能從列表中克隆庫: enter image description here

UPDATE: 今天提供AndroidStudio 2.1 Beta 2 問題已解決,但它僅適用於http。 SSH不起作用

該對話框顯示3次。然後錯誤: 失敗,錯誤:致命:無法從遠程存儲庫讀取。 enter image description here

的Android工作室日誌:

2016-04-15 13:03:39,507 [5583156] INFO - #git4idea.commands.GitHandler - git -c core.quotepath=false push --progress --porcelain origin refs/heads/master:master 
2016-04-15 13:03:41,671 [5585320] INFO - #git4idea.commands.GitHandler - java.io.IOException: Authentication failed: 
2016-04-15 13:03:41,671 [5585320] INFO - #git4idea.commands.GitHandler - at org.jetbrains.git4idea.ssh.SSHMain.authenticate(SSHMain.java:298) 
2016-04-15 13:03:41,672 [5585321] INFO - #git4idea.commands.GitHandler - at org.jetbrains.git4idea.ssh.SSHMain.start(SSHMain.java:172) 
2016-04-15 13:03:41,672 [5585321] INFO - #git4idea.commands.GitHandler - at org.jetbrains.git4idea.ssh.SSHMain.main(SSHMain.java:137) 
2016-04-15 13:03:41,681 [5585330] INFO - #git4idea.commands.GitHandler - fatal: Could not read from remote repository. 
2016-04-15 13:03:41,681 [5585330] INFO - #git4idea.commands.GitHandler - Please make sure you have the correct access rights 
2016-04-15 13:03:41,681 [5585330] INFO - #git4idea.commands.GitHandler - and the repository exists. 

但是庫中存在和SSH密鑰加,我有訪問權限。我以前的版本,它的作品。

+0

請看看這個[Stack overflow answer](http://stackoverflow.com/questions/35611289/intellij-15-github-cannot-clone-repository-getting-repository-test-has-fai) –

+0

@AswinPJ我將SSH可執行選項設置爲使用內置,但問題未解決 – NickUnuchek

+0

Android Studio是否在控制檯中顯示任何其他詳細錯誤? –

回答

0

這種方法適用於我。

只需簡單地使用git-bash中創建一個存儲在公共密鑰的〜/ .ssh

然後下載source tree並打開它

1)去工具

2)點擊「創建或SSH密鑰導入

3)去談話

4)到〜/ .ssh目錄

5)選擇id_rse文件

導向這個告訴你的公鑰複製並粘貼INT您bitbucket.org/ssh-key 和完成。