gitbash中文乱码显示数字问题

        在windows上用gitbash提交代码会遇到中文乱码,git status查看代码状态的时候,中文状态是一串数字如下图:

gitbash中文乱码显示数字问题_第1张图片

 用git log查看代码提交记录如果是中文显示的也是乱码。在工作中这样会很不方便,所以必须要解决这个工具显示中文不正确的问题

1,右键点击gitbash上面的绿条,弹窗点Options

gitbash中文乱码显示数字问题_第2张图片

2,  选择Text,修改编码如下图,然后点击Apply,Save

gitbash中文乱码显示数字问题_第3张图片

3, 修改git的全局配置

git config --global core.quotepath false

#界面编码格式
git config --global gui.encoding utf-8

#文件提交编码格式
git config --global i18n.commitencoding utf-8

#LOG输出的编码格式
git config --global i18n.logoutputencoding utf-8

4,查看效果(敏感信息已做处理)

gitbash中文乱码显示数字问题_第4张图片

gitbash中文乱码显示数字问题_第5张图片

 

你可能感兴趣的:(Others,git,gitbash)