git clone --early EOF

出现这个问题可能需要重新检查以下方面:

1. Android studio Git 的安装地址:  ..../Git/cmd/git.exe

记得在环境变量 --Path 中进行配置: ,..../Git/cmd

2. ssh 连接 github

进入 git 的安装目录下右键运行 Git_Bash,然后按照下面博客进行操作

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

3. 在输入 $ ssh -T git@github.com 命令测试 SSH KEY 时,如果出现以下错误:

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

需要在 C:UsersAdministrator.PC-201608030926.ssh 目录下添加 config 文件(如果存在的话直接修改)

在 config 文件中添加以下内容(id_rsa 为所生成的 SSH Key 文件名):

  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了

原文地址:https://www.cnblogs.com/zhy7104/p/6259058.html