IDEA中使用Terminal连接git bash输入命令,在git log 时日志信息出现中文乱码,,,,
尝试过很多方法都失败,最终找到这个方法:
在Terminal窗口运行以下三个命令后问题得到解决。
git config --global i18n.commitencoding utf-8
git config --global i18n.logoutputencoding utf-8
export LESSCHARSET=utf-8
IDEA中使用Terminal连接git bash输入命令,在git log 时日志信息出现中文乱码,,,,
尝试过很多方法都失败,最终找到这个方法:
在Terminal窗口运行以下三个命令后问题得到解决。
git config --global i18n.commitencoding utf-8
git config --global i18n.logoutputencoding utf-8
export LESSCHARSET=utf-8