本文共 281 字,大约阅读时间需要 1 分钟。
在使用git bash或其他开发工具的terminal,执行git status 、git log等命令中文会显示乱码
下面整理一下出现乱码是要怎么解决
git config --global core.quotepath false
设置提交和打印log字符集
git config --global i18n.commitEncoding utf-8git config --global i18n.logOutputEncoding utf-8
然后在环境变量中添加 LESSCHARSET=utf-8
转载地址:http://umikf.baihongyu.com/