Mohamed Taboubi
Mohamed Taboubi

Reputation: 7021

GIT - IntelliJ : Failed to start Git process

I m getting this message when I try to pull or to push my commits using IntelliJ :

"Failed to start Git process"

In the settings of my IntelliJ I linked the git binary folder as this : C:\Program Files\Git\bin\git.exe and when I click on "Test" it says the following :

Git executed successfully Git version is 2.9.0

However when I use the command line (using a terminal) to pull aord push it works correctly!

I consulted several links on the web to resolve my issue but without success I consulted this one too : Failed to start Git process

Upvotes: 5

Views: 20378

Answers (9)

NNM
NNM

Reputation: 398

had the same issue with Pycharm2024, i fixed it by renaming some newly updated files in the tmp folder as below -

enter image description here

under the path \AppData\Local\JetBrains\PyCharm2024.2\tmp

Upvotes: 0

Nikola GP
Nikola GP

Reputation: 1

I just restarted WebStorm, and it resolved itself

Upvotes: 0

Andreas B
Andreas B

Reputation: 407

I just faced the same error message. In my case the reason was that the IDE had been updated while it was open. The solution therefore was to simple restart the IDE.

Upvotes: 3

Pavel A.
Pavel A.

Reputation: 357

For PhpStorm 2024.1.1 I enabled Remote Execution Agent plugin:

"An experimental remote-side application for launching processes and making tunnels to WSL, SSH, Docker, etc."

and this fixed my errors with Git on WSL2.

Upvotes: 0

Sanket Gajbhiv
Sanket Gajbhiv

Reputation: 1

I just deleted two files from below location. It worked for me.

C:\Users\Your User name\AppData\Local\JetBrains\IdeaIC2020.1\tmp

  1. intellij-git-askpass.bat

  2. intellij-git-ssh.bat

After deleting these two files, go to Intellij--> File---> select "Invalidate Caches/ Restart" option---> click on "Invalidate and Restart"

After restarting Intellij, error will remove.

Upvotes: 0

Basil Bibi
Basil Bibi

Reputation: 1

In my case (ubuntu 20.04) I had to change how I was starting up intellij

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

Upvotes: 0

hengameh ghasemi
hengameh ghasemi

Reputation: 55

The simple ways is to try the following steps:

First run :

$ git config --global credential.helper store

Then simply Update your git version :

$git update-git-for-windows

Upvotes: 0

Sudhanshu Bajaj
Sudhanshu Bajaj

Reputation: 244

Go to preferences => Version control => Git Change the directory path for the executable to /usr/local/git/bin/git.

Hit Test button to confirm.

Upvotes: 5

togorks
togorks

Reputation: 138

Had a similar issue. In my case, IntelliJ logs(C:\Users\UserName\.IdeaIC2017.3\system\log) had the following info:

"C:\Users\UserName\.IdeaIC2017.3\system\tmp\intellij-git-askpass.bat (Access is denied)"

So, I went ahead and deleted the following two files(located at C:\Users\UserName\.IdeaIC2017.3\system\tmp) and the error went away:

intellij-git-askpass.bat

intellij-git-ssh.bat

Not really sure what the two files are responsible for, though.

Upvotes: 11

Related Questions