Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setup git in Intellij terminal

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.

like image 944
user2302448 Avatar asked Feb 10 '14 11:02

user2302448


People also ask

Where do I put Git commands in IntelliJ?

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.

How do I use Bash in IntelliJ terminal?

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.


2 Answers

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.

like image 109
Aleksej Shovgenja Avatar answered Sep 20 '22 17:09

Aleksej Shovgenja


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

like image 23
Alvic Avatar answered Sep 18 '22 17:09

Alvic