1. git status 乱码
例如:中文会显示如下形式
\344\274\230\345\214\226\346\211\223\345\214\205\346\236\204\345\273\272\351\200\237\345\272\246
解决方法:
git config --global core.quotepath false
2. git commit 乱码
解决方法:
git config --global i18n.commitencoding utf-8
3. git log 乱码
解决方法:
git config --global i18n.logoutputencoding utf-8
注意:如果是Linux系统,需要设置环境变量 export LESSCHARSET=utf-8