Git Bash inside PhpStorm

Go to: File -> Settings -> Tools -> Terminal

If you are using 64 Bit Git Bash(Git for Windows) put this in the Shell Path field.

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

Or for 32 Bit Git Bash put this in the field

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