msysgit中文乱码问题大全
版本:gitversion1.7.4.msysgit.0
.gitconfig文件内容:
[core] autocrlf = false quotepath = false [gui] encoding = utf-8 [i18n] commitencoding = utf-8 logoutputencoding = gbk [user] email = [email protected] name = xyang [svn] pathnameencoding = gbk
Git\etc下:
git-completion.bash增加:
alias ls='ls -hF --show-control-chars --color=auto' alias dir='ls --color=auto --format=vertical' alias vdir='ls --color=auto --format=long' alias ll='ls -l' alias la='ls -A' alias s='ls -CF' alias d='cd ..' alias vi='vim'
inputrc增加:
set output-meta on set convert-meta off
profile增加:
export LESSCHARSET=utf-8 export PS1='[\w]\$'
修改Git\libexec\git-core,在4457行增加:
$self->{pathnameencoding} = Git::config('svn.pathnameencoding');
此处是为了解决gitsvndcommit提交时,中文路径无法上传问题