Setup git in Intellij terminal

后端 未结 4 974
挽巷
挽巷 2021-01-29 19:06

I want to use git in Intellij Terminal but it does not recognize the command. In Command Prompt and Windows power shell the command in recognized (I added the git path in System

相关标签:
4条回答
  • 2021-01-29 19:31

    The full path is not needed anymore (windows), I just replaced cmd.exe to sh.exe and bingo was his name O

    Settings > Tools > Terminal > Shell path sh.exe

    0 讨论(0)
  • 2021-01-29 19:32

    This worked for me:

    IntelliJ: File->Settings->Version Control->Git:

    On the right side, Path to Git executable:

    "C:\Program Files\Git\bin\git.exe"

    0 讨论(0)
  • 2021-01-29 19:38

    Setup JetBrains(InteliJ, WebStorm, PHPStorm) IDE terminal to use GIT bash

    • File
    • Settings
    • (Enter 'Terminal' in search)
    • Change Shell path to:

    "C:\Program Files\Git\bin\sh.exe" --login -i

    or

    "C:\Program Files\Git\bin\bash.exe"
    

    If you have another directory for installed git change it respectively.

    0 讨论(0)
  • 2021-01-29 19:51

    you don't need to reinstall anything. Go to:

    -File -Settings -Search for terminal - in shell path type: "C:\Program Files\Git\bin\sh.exe" --login -i (or another directory where you installed Git) Please let me know if that worked fine for you

    0 讨论(0)
提交回复
热议问题