PhpStorm 中 terminal 修改为git bash后git log 中文显示问题修复

1、如果没有设置git bash 路径先设置路径

在PhpStorm   setting ->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"
 

你可能感兴趣的:(php)