起首,之前的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版本的字样。