I\'m trying to set Git executable in IntelliJ to be the git installed in Windows Subsystem for Linux, I tried a few different ways, but always got some sort of error. Today I in
For me this solution works:
File: git.bat
@echo off setlocal enabledelayedexpansion set command=%* If %PROCESSOR_ARCHITECTURE% == x86 ( C:\Windows\sysnative\bash.exe -c 'git %command%' ) Else ( bash.exe -c 'git %command%' )