解决git commit注释中文乱码

输入命令:
git config –global core.quotepath false
git config –global gui.encoding utf-8
git config –global i18n.commit.encoding utf-8
git config –global i18n.logoutputencoding utf-8
export LESSCHARSET=utf-8 windows没有export命令,可以添加这个环境变量

解决PortableGit Vim编辑器中文文件名乱码

打开PortableGit/etc/vimrc

添加:
set fileencoding=utf-8
set encoding=utf-8
set termencoding=utf-8

Leave a Reply

Your email address will not be published. Required fields are marked *