1、如果没有设置git bash 路径先设置路径
在PhpStorm设置 Tools->Terminal->Shell path
(找不到对应位置可在设置搜索Shell path)
为 git bash运行的路径
如: D:\Program Files\Git\bin\bash.exe
这样的路径。
2、修复 中文显示问题
找到GitBash安装目录,找到Git\etc\bash.bashrc
文件(如:D:\Program Files\Git\etc\bash.bashrc
),在文件末尾添加:
# support chinese export LANG="zh_CN.UTF-8" export LC_ALL="zh_CN.UTF-8"