windows下git bash中文乱码问题解决方法
来源:互联网 发布:淘宝网棉麻女装 编辑:程序博客网 时间:2024/06/05 12:00
进入git安装目录,通常是C:\Program Files (x86)\Git\
1. 编辑etc\gitconfig文件,在文件末尾增加以下内容:
[gui]encoding = utf-8 #代码库统一使用utf-8[i18n]commitencoding = GB2312 #log编码,windows默认gb2312,声明后发到服务器才不会乱码[svn]pathnameencoding = GB2312 #支持中文路径
2. 编辑etc\git-completion.bash文件,在文件末尾增加以下内容:
alias ls='ls --show-control-chars --color=auto' #ls能够正常显示中文
3. 编辑etc\inputrc文件,修改output-meta和convert-meta属性值:
set output-meta on #bash可以正常输入中文set convert-meta off
4. 编辑profile文件,在文件末尾添加如下内容:
export LESSHARESET=utf-8
参考资料:
http://www.cnblogs.com/wangkongming/p/3821305.html
0 0
- windows下git bash中文乱码问题解决方法
- windows下git bash 乱码的问题解决
- Windows下Git Bash中文乱码
- Windows下Git Bash中文乱码
- Windows下Git Bash中文乱码
- Windows下Git Bash中文乱码
- windows下git bash中文乱码
- windows下git bash中文乱码
- windows下git bash中文乱码解决办法
- Windows下Git Bash中文乱码
- Windows下Git Bash中文乱码
- Windows下Git Bash中文乱码
- windows下git bash中文乱码解决办法
- Windows下CMD中文乱码问题解决方法
- Windows下CMD中文乱码问题解决方法
- git bash下中文乱码
- git bash中文乱码问题解决办法
- Windows下Git Bash命令LS显示中文乱码
- 眼里没你的人,何必放心上;情里没…
- 2014,致12月的自己
- 感谢我的不完美,让我看清了真正对…
- Nagios 无数据,出现 It appears as though you do not have permission to view information 问题解决
- 高盛向金融数据服务商Kensho投资1500万美元 欲以机器取代分析师
- windows下git bash中文乱码问题解决方法
- 如何给程序中的变量起个好名字
- 写的真好 ,太现实了
- 【C++总结】函数形参,返回const对象与非const对象,成员函数,函数指针
- 9个段子胜过你今年读的所有微信
- HTML5入门指南
- 如何成为一个真正在路上的Linuxer
- 你可以使用HTML Meta标签来做…
- 从登录框看前端