'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



Solution 1:[1]

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.

Solution 2:[2]

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

Hit Test button to confirm.

Solution 3:[3]

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

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 togorks
Solution 2 a_k_v
Solution 3 41 72 6c