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.