Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PhpStorm 解决 git 乱码问题 #5

git-zjx opened this issue Jul 11, 2019 · 0 comments

PhpStorm 解决 git 乱码问题 #5

git-zjx opened this issue Jul 11, 2019 · 0 comments


Copy link

@git-zjx git-zjx commented Jul 11, 2019

将 IDEA Terminal 命令窗口修改为 Git bash 命令窗口
1、打开 settings 设置界面,选择 Tools 中的 Terminal (File -> settings -> Tools -> Terminal)
2、修改 Shell path 为你的 Git bash 安装路径

修改 Git 的安装目录下的bash.bashrc文件

# 解决 IDEA 下的 terminal 中文 Unicode 编码问题
export LANG="zh_CN.UTF-8"
export LC_ALL="zh_CN.UTF-8"

重启 Terminal 即可

@git-zjx git-zjx added this to 配置 in PhpStorm Jul 11, 2019
@git-zjx git-zjx self-assigned this Mar 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant