• 周一. 11月 9th, 2026

git 中文乱码

可以尝试如下方法:

在~/.gitconfig添加如下:
[gui]
	encoding = utf-8
[core]
	quotepath = false
[i18n]
	commitencoding = utf-8
	logoutputencoding = utf-8
[svn]
    pathnameencoding = utf-8
[i18n "commit"]
	encoding = utf-8

如果以上修改还没有解决问题,尝试以下方法:

export LESSCHARSET=utf-8

发表评论

您的电子邮箱地址不会被公开。