1、首先打开gitbash窗口,右键option设置text ,分别选择zh_CN 和 GBK

2.、进入git安装目录, Git目录搜索gitconfig文件,在文件末尾空白处增加:
[gui]encoding = utf-8
[i18n]
commitencoding = utf-8
[svn]
pathnameencoding = utf-8

3、Git目录搜索profile,打开etc目录下的profile文件,在文件末尾空白处增加:
export LESSHARESET=utf-8
alias ls='ls --show-control-chars --color=auto'

4、Git目录搜索 inputrc 文件,选择etc下的inputrc,查看output-meta、convert-meta属性值,如果于下面内容一致,则不用修改
set input-meta on
set output-meta on
set convert-meta off
【说明】:本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!