进入git安装目录,编辑etc\gitconfig文件,在文件末尾增加以下内容:
[gui]
encoding = utf-8 #代码库统一使用utf-8
[i18n]
commitencoding = utf-8 #log编码
[svn]
pathnameencoding = utf-8 #支持中文路径编辑etc\profile文件,在文件末尾增加以下内容:
export LESSHARESET=utf-8
alias ls='ls --show-control-chars --color=auto' #ls能够正常显示中文- 编辑etc\inputrc文件,修改output-meta和convert-meta属性值:
#disable/enable 8bit input
set input-meta on
set output-meta on
set convert-meta off
在git bash输入如下命令:
git config --global gui.encoding utf-8
git config --global i18n.commitencoding utf-8
git config --global i18n.logoutputencoding utf-8
export LESSCHARSET=utf-8
小额赞助,鼓励博主写出更多好文章
UBOCK
找方法不找借口
和安全有关的那些事(非对称加密、数字摘要、数字签名、数字证书、SSL、HTTPS及其他)