1. 程式人生 > >Git 相關文字顯示亂碼問題

Git 相關文字顯示亂碼問題

1 系統文字配置問題

  • 檢視命令:
  • $ echo $LANG;
  • export LANG="zh_CN.UTF-8"

2 修改git配置

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