1、在命令行下不能输入中文。D:\Git\msysgit\etc\inputrc,修改:

set output-meta on
set convert-meta off

说明:使得在 Git Bash 中可以正常输入中文,比如中文的 commit log。

2、使用 less命令时显示中文。D:\Git\msysgit\etc\profile, 添加:

export LESSCHARSET=utf-8

3、git log时显示中文。D:\Git\msysgit\etc\gitconfig,添加:

[gui]
encoding
=utf-8
[i18n]
commitencoding
=GBK

4、添加自定义alias功能。D:\Git\msysgit\etc\gitconfig,添加:

[alias]
    go = “! bash -c \”git pull && git add .; if [ \\\"$*\\\" == \\\"\\\" ]; then git commit -a; else git commit -am \\\”$*\\\”; fi; git push origin master:your-id;\”"

参考:

http://note.9hills.us/msysgit.html

msysGit 各种中文问题的解决

相关文章:

  • 2021-06-19
  • 2022-12-23
  • 2021-11-03
  • 2021-08-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-09
猜你喜欢
  • 2021-10-12
  • 2021-12-29
  • 2021-11-09
  • 2021-09-25
相关资源
相似解决方案