找到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"在PhpStorm设置 Tools->Terminal->Shell path 为如: D:\Program Files\Git\bin\bash.exe 这样的路径。
重新打开Terminal即可生效。
效果如下:
