在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.这样设置完后,在当前命令窗口是没问题的,如果想都生效就直接在环境变量中设置