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、在设置系统变量

3、重新执行 git log 搞定

感谢: https://blog.csdn.net/FollowGodSteps/article/details/96271359

暂无评论

发表评论

您的电子邮件地址不会被公开,必填项已用*标注。

相关推荐