msysgit中文问题

解决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/archive/2011/07/15/2107176.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值