git clone --early EOF

出現這個問題可能須要從新檢查如下方面:git

1. Android studio Git 的安裝地址:  ..../Git/cmd/git.exegithub

記得在環境變量 --Path 中進行配置: ,..../Git/cmdssh

2. ssh 鏈接 githubide

進入 git 的安裝目錄下右鍵運行 Git_Bash,而後按照下面博客進行操做測試

http://blog.csdn.net/binyao02123202/article/details/20130891spa

3. 在輸入 $ ssh -T git@github.com 命令測試 SSH KEY 時,若是出現如下錯誤:.net

no such identity: /c/Users/Administrator.PC-201608030926/.ssh/id_rsa.github:blog

須要在 C:\Users\Administrator.PC-201608030926\.ssh 目錄下添加 config 文件(若是存在的話直接修改)ip

在 config 文件中添加如下內容(id_rsa 爲所生成的 SSH Key 文件名):get

  Host github.com www.github.com
      IdentityFile ~/.ssh/id_rsa

  Host git.company.com
      IdentityFile ~/.ssh/id_rsa

出現 Permission denied (publickey),是因爲多 SSH Key 致使的,也能夠經過以上方法設置

4. 將 SSH Key 添加到 github 上

http://blog.csdn.net/vipzjyno1/article/details/22098621

5. ssh-add ~/.ssh/rsa 時報錯:Could not open a connection to your authentication agent

先執行  eval `ssh-agent`  (是~鍵上的那個`) 再執行 ssh-add ~/.ssh/rsa成功ssh-add -l 就有新加的rsa了

相關文章
相關標籤/搜索