运行git时出错“无法运行程序”git“:error = 2 [英] Error running git"Cannot run program "git": error=2

查看:354
本文介绍了运行git时出错“无法运行程序”git“:error = 2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我在运行Mac OS 10.8.3的Android Studio上出现这个错误,我安装了github客户端,但不是必需的...



任何帮助?

谢谢

解决方案

设置 - >中注册的路径。版本控制 - > Git ,位于 Git可执行文件路径旁边的文本框中。



它应该引用本地安装的git。

如果那里提到的路径不存在,那就会解释错误信息。


I have this error on my Android Studio running with Mac OS 10.8.3, I've installed the github client but is not necesary...

Any help?

Thanks

解决方案

Check the path registered in Settings -> Version Control -> Git, in text box next to "Path to Git Executable".

It should reference a local installation of git.
If the path mentioned there doesn't exist, that would explain the error message.

这篇关于运行git时出错“无法运行程序”git“:error = 2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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