Using Git in Windows Subsystem for Linux through IntelliJ

前端 未结 9 919
萌比男神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:26

    Change the double to single quotes.

    You can log, what arguments are fed to your bat file

    @echo off
    @echo %*>> %~dp0log.txt
    bash.exe -c 'git %*'
    

    With that, i discovered i had some escaping problems.

    FYI: With the Win10 creators update piping bash and spawning it from Windows programs works fine.

提交回复
热议问题