msysgit中文问题

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 各种中文问题的解决

原文地址:https://www.cnblogs.com/chenjunbiao/p/2107176.html