PowerShell | git log 中文乱码问题解决

1、在PowerShell中输入以下命令

git config --global core.quotepath false
git config --global gui.encoding utf-8
git config --global i18n.commit.encoding utf-8
git config --global i18n.logoutputencoding utf-8
$env:LESSCHARSET='utf-8'

2、在系统环境变量中添加变量 LESSCHARSET 为utf-8

右击此电脑 > 高级系统设置 > 高级 > 环境变量 > 新建环境变量

 设置完成之后重新打开PowerShell

 

posted @ 2020-05-07 14:01  dearyang  阅读(52)  评论(0)    收藏  举报