Configuring Git Bash As An External Tool

How do I configure Git Bash as an external tool?
I have Console2 and CubicExplorer configured fine as external tools but I can't seem to make Git Bash work.
The Windows shortcut is:
C:\Windows\SysWOW64\cmd.exe /c ""C:\Program Files (x86)\Git\bin\sh.exe" --login -i"

The working directory should probably be set to $ProjectFileDir$ to make it useful.


On Windows 7, I use parameters: "/c start D:\Programs\Git\bin\sh.exe --login -i", with the working dir set to "$FileDir$".


Thanks Shorn. I noticed that you don't have any spaces in your path.
That led me to believe that the problem seemed to stem from the fact that I had spaces in Program Files(x86) and IDEA was getting confused by the quotes I was putting in.
Windows 8.3 names to the rescue!
/c start C:\Progra~2\Git\bin\sh.exe --login -i

Working dir set to $ProjectFileDir$ makes more sense for me as I only use it for repo level commands that IDEA doesn't seem to support yet.
e.g.  git reset --soft HEAD~1 or git rebase --continue.

An alternative, is to add Console2 ( ) as an external tool and to have new tabs in that open Git Bash.


Please sign in to leave a comment.