Git解决中文乱码问题

git status 乱码

解决方法:
git config --global core.quotepath false

git commit 乱码

解决方法:
git config --global i18n.commitencoding utf-8

git status 乱码

解决方法:
git config --global i18n.logoutputencoding utf-8

注意:如果是Linux系统,需要设置环境变量 export LESSCHARSET=utf-8

posted @ 2020-02-13 12:45  为牧  阅读(11754)  评论(0编辑  收藏  举报