git -Intellij:无法启动GIT过程



i m当我尝试拉动或使用Intellij推动我的提交时收到此消息:

"无法启动git过程"

在我的Intellij的设置中,我链接了git二进制文件夹:c: program files git bin git.exe,当我单击"测试"时,它说了以下内容:

>

git成功执行的git版本为2.9.0

但是,当我使用命令行(使用终端(拉动AORD时,将其正确工作!

我咨询了网络上的几个链接以解决我的问题,但是没有成功,我也咨询了这一点:未能启动git Process

也有类似的问题。就我而言,Intellij logs(c: users username .ideaic2017.3 system log(具有以下信息:

" c: users username .ideaic2017.3 system tmp tmp intellij-git-askpass.bat(访问被拒绝("

所以,我继续删除以下两个文件(位于c: users username .ideaic2017.3 system tmp(,并且错误消失了:

Intellij-git-askpass.bat

Intellij-git-ssh.bat

不确定两个文件是什么负责的。

转到preferences => Version control => Git更改可执行文件的目录路径为/usr/local/git/bin/git

命中测试按钮以确认。

简单的方法是尝试以下步骤:

第一次运行:

$ git config --global credential.helper store

然后只需更新您的git版本:

$git update-git-for-windows

在我的情况下(ubuntu 20.04(,我必须更改启动Intellij

的方式

/snap/intellij-idea-community/current/bin/idea.sh &

我刚刚从下面删除了两个文件。它对我有用。

c: users 您的用户名 appdata local jetbrains indeic2020.1 tmp

  1. Intellij-git-askpass.bat

  2. Intellij-git-ssh.bat

删除这两个文件后,转到Intellij->文件--->选择"无效的卡车/重新启动"选项--->单击"无效"并重新启动"

重新启动Intellij后,错误将删除。

最新更新