Android Studio Checkout Github 错误“CreateProcess=2"(视窗) [英] Android Studio Checkout Github Error "CreateProcess=2" (Windows)

查看:25
本文介绍了Android Studio Checkout Github 错误“CreateProcess=2"(视窗)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

今天我尝试使用全新的 Android Studio 来检查我的 Github 项目,结果遇到了这个令人讨厌的错误:

Today I've tried to checkout my Github project using brand new Android Studio and ended up with this nasty error :

为什么事情总是开箱即用......?

Why things just never work out of the box ...?

推荐答案

我已经解决了这个问题,我会解释如何:

I've solved the problem , and I will explain how :

  1. 下载 Github For Windows 客户端并安装.
  2. 客户端安装成功后,将其与您的github帐户连接.应该很容易,只需按照向导操作即可.
  3. 然后您应该将 git.exe 位置添加到您的路径变量".您应该添加的位置可能类似于:C:\Users\Your_Username\AppData\Local\GitHub\PortableGit_ca477551eeb4aea0e4ae9fcd3358bd96720bb5c8\bin
  1. Download Github For Windows client and install it.
  2. After The client successfully installed , connect it with your github account.It should be easy , just follow the wizard.
  3. Then you should add git.exe location to your "Path Variable". The location you should add will probably be something like : C:\Users\Your_Username\AppData\Local\GitHub\PortableGit_ca477551eeb4aea0e4ae9fcd3358bd96720bb5c8\bin

或者,如果您不想添加到环境变量.您可以打开 android studio 并转到:设置 ->版本控制 ->吉特在Git 可执行文件的路径"旁边的文本框中你会看到git.exe",只需给它一个完整的路径,如下所示:C:\Users\Your_Username\AppData\Local\GitHub\PortableGit_ca477551eeb4aea0e4ae9fcd3358bd96720bb5c8\bin\git.exe

Alternatively , if you don't want to add to environment variables. You can open the android studio and go to : Settings -> Version Control -> Git In text box next to "Path to Git Executable" you will see "git.exe" , just give it a full path like so : C:\Users\Your_Username\AppData\Local\GitHub\PortableGit_ca477551eeb4aea0e4ae9fcd3358bd96720bb5c8\bin\git.exe

对于 Windows 版本的最新 Github,有些人可以在 "...\cmd\git.exe" 而不是 " 下找到 git.exe....\bin\git.exe".

EDIT : For latest Github for windows versions some can find the git.exe under "...\cmd\git.exe" rather than "...\bin\git.exe".

这篇关于Android Studio Checkout Github 错误“CreateProcess=2"(视窗)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆