第一步
设置终端显示的编码,git bash 窗口右键设置支持中文字符,选择 Options ->Text,选择zh_CN、UTF-8
第二步
在 git bash 终端执行以下命令:
git config --global core.quotepath false
git config --global gui.encoding utf-8
git config --global i18n.commitencoding utf-8
git config --global i18n.logoutputencoding utf-8
export LESSCHARSET=utf-8
参考来源:
https://blog.csdn.net/weixin_50836306/article/details/124735263