> 技术文档 > idea 中突然出现Cannot Run Git: Cannot identify version of Git executable: no response

idea 中突然出现Cannot Run Git: Cannot identify version of Git executable: no response


问题场景:

首先,之前的git都是正常的。
今天一早打开电脑启动idea项目后,发现右下角就出现git的红色报错“Cannot check the working tree for unmerged files because of an error. Cannot Run Git: Cannot identify version of Git executable: no response”。
以及commit、pull、push等操作都失败,报错:“Error updating changes: Cannot Run Git: Cannot identify version of Git executable: no response”


解决方案:

网上搜索了一下,解决方法还挺多的

参考了之后我尝试了最简单的一种方式,就直接可以了。
1、idea左上角点击file->settings->Version Control->Git

一般来说,之前在Path to Git executable中都是有配置过电脑本地的git地址的,但是会发现下面没有出现git版本的字样。
idea 中突然出现Cannot Run Git: Cannot identify version of Git executable: no response

2、此时只需要点击右边的Test,当出现了下面的git版本信息,基本就解决了idea 中突然出现Cannot Run Git: Cannot identify version of Git executable: no response
3、点击ok保存后,重新pull或者commit等git操作都已正常,无报错。

护肤补水产品