打开idea --> file --> settings --> Tools --> Terminal 找到 Shell path 一栏将 Shell path 更改为 Git安装路径中的 bin/ 目录下的 bash.exe 即可