中文文件名乱码(git status、git log、git pull 、git push)

#不对0x80以上的字符进行quote,解决git status/commit时中文文件名乱码
git config --global core.quotepath false

 

ls 显示中文文件乱码(C:\Program Files\Git\etc\git-completion.bash)

alias ls='ls --show-control-chars --color=auto'

 

输入中文(C:\Program Files\Git\etc\inputrc)

set output-meta on

 

中文Commit log(C:\Program Files\Git\etc\profile)

export LESSCHARSET=utf-8

 

Git GUI显示中文(C:\Program Files\Git\etc\gitconfig)

[gui]
encoding = utf-8

 

转换编码(C:\Program Files\Git\etc\gitconfig)

[i18n]
commitencoding = GB2312

 

修改显示编辑器

git config --global core.editor "vim"

 

 

参考:http://xstarcd.github.io/wiki/shell/git_chinese.html

相关文章:

  • 2022-01-09
  • 2022-03-08
  • 2021-11-06
  • 2022-12-23
  • 2022-12-23
  • 2021-11-05
  • 2022-02-13
猜你喜欢
  • 2022-01-01
  • 2021-12-05
  • 2021-09-29
  • 2022-02-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案