git version 2.5.0.windows.1中文乱码问题解决方案

时间:2022-10-30 21:32:36

UI部分

Options->Text

Local:zh_CN,Character set:GBK

~/.GitConfig

[gui]
encoding = utf-8
[tgit]
projectlanguage = 2052
[credential]
helper = wincred
[i18n]
commitencoding = utf-8
logoutputencoding = gbk

/etc/profile

最后一行加入如下配置:

export LESSCHARSET=iso8859