解决 git log 乱码

时间:2022-07-28
本文章向大家介绍解决 git log 乱码,主要内容包括其使用实例、应用技巧、基本知识点总结和需要注意事项,具有一定的参考价值,需要的朋友可以参考一下。

设置git编码

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 

设置编码

bash 环境下

export LESSCHARSET=utf-8

cmd环境下:

set LESSCHARSET=utf-8

设置Windows环境变量

LESSCHARSET utf-8