首页  >  问答  >  正文

git-bash - windows上Git bash 查看log乱码

问题如下图所示:

已尝试
http://tiankonguse.com/blog/?p=117
所用的方法,无法解决~~~

伊谢尔伦伊谢尔伦2731 天前518

全部回复(2)我来回复

  • PHP中文网

    PHP中文网2017-04-28 09:08:06

    终端输入:

    git config --global i18n.commitencoding utf-8
    git config --global i18n.logoutputencoding gbk

    回复
    0
  • 为情所困

    为情所困2017-04-28 09:08:06

    Bash下输入:

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

    楼上的应该是少了一句

    相关链接:
    /blog/tony/1190000000578037
    http://howiefh.github.io/2014/10/11/git-encoding/

    回复
    0
  • 取消回复