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

猜你喜欢

转载自www.cnblogs.com/yulongcode/p/12303180.html