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命令及系统环境变量来确保Git使用UTF-8编码,包括设置全局配置项和LESSCHARSET变量的具体步骤。
4444





