Git解决中文乱码问题

转载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 @ 2022-01-28 16:33  if年少有为  阅读(585)  评论(0编辑  收藏  举报