Git Bash中Git log中文乱码——终极解决方案(转)

醉酒当歌 提交于 2020-01-19 19:31:42

RT

在网上搜寻良久,大部分是:

  1. git config --global i18n.commitencoding utf-8
  2. git config --global i18n.logoutputencoding gbk
  3. export LESSCHARSET=utf-8

但是问题依然存在。

再看上述命令,提交的编码是utf-8,日志输出确实gbk,不解,于是换成如下:

  1. git config --global i18n.commitencoding utf-8
  2. git config --global i18n.logoutputencoding utf-8
  3. export LESSCHARSET=utf-8

问题得以解决。

转载地址:http://blog.csdn.net/qq_27258799 https://blog.csdn.net/qq_27258799/article/details/78977764

RT

在网上搜寻良久,大部分是:

  1. git config --global i18n.commitencoding utf-8
  2. git config --global i18n.logoutputencoding gbk
  3. export LESSCHARSET=utf-8

但是问题依然存在。

再看上述命令,提交的编码是utf-8,日志输出确实gbk,不解,于是换成如下:

  1. git config --global i18n.commitencoding utf-8
  2. git config --global i18n.logoutputencoding utf-8
  3. export LESSCHARSET=utf-8

问题得以解决。

转载地址:http://blog.csdn.net/qq_27258799 https://blog.csdn.net/qq_27258799/article/details/78977764

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!