I am trying to switch WebStorm (WS) to use Windows Linux Subsystem (WLS).
So far I have WLS bash working in cmd and in WS. I am running 64-bit version of WS and in settings->tools->terminal
shell path is set to bash.exe
. This correctly loads WLS bash into terminal window of WS. However, even though in terminal I can normally use Git commands, I am unable to figure out how to set settings->version control->git
path to git executable.
Keep in mind, for WS (and other Intellij products) this is git for the IDE itself. While I don't care that much for it, it is constantly throwing warnings that it can't start Git. Also I find it remotely useful to have that gray color mark on beginning of modified row since last commit in the file editor itself.
Things that I've tried
Path to Git executable:
C:\Windows\System32\bash.exe
errors while executing git --versions. exitCode=-1
C:\Windows\System32\bash.exe -login -i
Cannot run program "C:\Windows\System32\bash.exe -login -i": CreateProcess error=2, The system cannot find the file specified
"C:\Windows\System32\bash.exe" -login -i
Cannot run program ""C:\Windows\System32\bash.exe" -login -i": CreateProcess error=87, The parameter is incorrect
"C:\Windows\System32\bash.exe" --login -i
Cannot run program ""C:\Windows\System32\bash.exe" --login -i": CreateProcess error=87, The parameter is incorrect
In contrast, while running Git Bash for Windows, the correct path would be “C:\Program Files (x86)\Git\bin\sh.exe” –login -i
I am tagging other Intellij products as well, since this question should be universal for most of them if not all.
Addition information (based on comments)
I do not have git installed in windows, git only exists inside WLS.