1、使用 “ git log ” 命令查看提交记录时,出现中文乱码的解决办法。
使用以下命令:
“ git config --global i18n.commitencoding utf-8 ” :提交命令的时候使用utf-8编码集提交
“ git config --global i18n.logoutputencoding utf-8 ” :日志输出时使用utf-8编码集显示
“ export LESSCHARSET=utf-8 ” :设置LESS字符集为utf-8
2、用 " git status " 查看修改文件路径时,中文路径出现乱码的解决办法。
“ git config --global core.quotepath false ”