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 Environment Variables). I am also aware that Intellij has an GUI integration with Git.
So, can anyone tell me how can I use the git command in the Intellij terminal.
Assuming that you've installed Git for Windows already, just go into the settings in Intellij Idea and change the default path from cmd.exe to git-cmd.exe (depends on which directory have you installed Git). Apply and restart Intellij after that.
IntelliJ IDEA uses cmd.exe in the terminal view by default. To replace it with the Ubuntu bash, open up the IntelliJ IDEA settings menu located under “File” -> “Settings”. Next search for “Terminal” and select “Terminal” under “Tools”. You can now use the Ubuntu bash directly in IntelliJ IDEA.
Setup JetBrains(InteliJ, WebStorm, PHPStorm) IDE terminal to use GIT bash
"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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With