Go to File -> Settings -> Tools -> Terminal and change Shell path based on the the installed git version.
for 64bit:
"C:\Program Files\Git\bin\sh.exe" --login -ifor 32bit:
"C:\Program Files (x86)\Git\bin\sh.exe" --login -iDon't forget the quotes around the command.

Note that :
C:\Users\youruserid\AppData\Local\Programs\Git\bin\bash.exeC:\Users\youruserid\AppData\Local\Programs\Git\git-bash.exe