GIT - IntelliJ : Failed to start Git process
Asked Answered
N

7

5

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

Nonaggression answered 20/2, 2018 at 16:32 Comment(1)
Is it possible to share idea.log ("Help | Show Log in...") after restarting IDE and reproducing the issue?Swede
D
10

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.

Donnie answered 3/4, 2018 at 21:50 Comment(0)
T
5

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

Hit Test button to confirm.

Tobias answered 16/11, 2018 at 6:1 Comment(1)
Tried upgrading Xcode, xcodebuild blah di blah, didn't realise it was as simple as this solution here, spot onIntermediate
I
1

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.

Inexact answered 22/8 at 11:57 Comment(0)
O
0

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
Occur answered 26/4, 2022 at 5:44 Comment(1)
What does the first command do?Retral
U
0

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

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

Undrape answered 1/12, 2022 at 6:9 Comment(0)
K
0

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.

Kirbie answered 24/3, 2023 at 7:44 Comment(0)
P
0

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.

Pergrim answered 7/6 at 8:11 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.