在windows 中,用cmd或者bash中使用git時候,經常出現亂碼,試了很多都不行...解決命令如下:
git config --global core.quotepath false
git config --global gui.encoding utf-8
git config --global i18n.commit.encoding utf-8
git config --global i18n.logoutputencoding utf-8
set LESSCHARSET=utf-8
Linux下使export.這樣設置完後,在當前命令窗口是沒問題的,如果想都生效就直接在環境變量中設置