把IDEA中的控制台改为 git窗口 File —— SettingsTools —— Terminal更改 Shell path:D:\xxx\Git\git-bash.exe打开 Terminal即可弹出git窗口不用关闭即可,再次使用,点击 Terminal