Using Git in Windows Subsystem for Linux through IntelliJ

前端 未结 9 1086
萌比男神i
萌比男神i 2021-01-30 11:10

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

9条回答
  •  太阳男子
    2021-01-30 11:36

    In PhpStorm (2017.2 EAP) I get error

    Caused by: com.intellij.openapi.vcs.VcsException: 'bash.exe' is not recognized as an internal or external command, operable program or batch file.

    For solution i change last line to

    If %PROCESSOR_ARCHITECTURE% == x86 (
        C:\Windows\sysnative\bash.exe -c 'git %command%'
    ) Else (
        bash.exe -c 'git %command%'
    )
    

提交回复
热议问题