cannot run program "git.exe":CreateProcess error=2

在使用android studio从git上check项目的时候报错cannot run program "git.exe":CreateProcess error=2

请检查下面步骤:

  1. 下载 Github For Windows 客户端并安装。
  2. 成功安装之后,连接你的账户。
  3. 然后设置你的环境变量,参考path比如:D:gitGitbin

当然了,如果你不想设置环境变量 : Settings -> Version Control -> Git 之后,在选项 "Path to Git Executable" 你可以看到 "git.exe" , 给它赋值:D:gitGitbin,后面有test按钮,测试之后可以发现地址是可以使用的。

原文地址:https://www.cnblogs.com/zhujiabin/p/5075026.html