首頁  >  問答  >  主體

git-bash - windows上Git bash 看log亂碼

問題如下圖:

已嘗試
http://tiankonguse.com/blog/?p=117
所用的方法,無法解決~~~

伊谢尔伦伊谢尔伦2730 天前510

全部回覆(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
  • 取消回覆