Git bash下中文乱码问题
2017-01-07 03:47
465 查看
Git bash下中文乱码 —— 解决方案
解决方案1:
在git bash下,右键 出现下图,选择options:![](https://images2017.cnblogs.com/blog/759421/201710/759421-20171009154555340-307424684.png)
选择“Text”
![](https://images2017.cnblogs.com/blog/759421/201710/759421-20171009154758871-932924386.png)
将
Character set设置为 UTF-8
![](https://images2017.cnblogs.com/blog/759421/201710/759421-20171009155116293-467070189.png)
解决方案2:(在上述方案1中,如果在git bash中,右键没有菜单的情况下)
进入git安装目录,通常是C:\Program Files (x86)\Git\编辑
etc\gitconfig文件,在文件末尾增加以下内容:
[gui] encoding = utf-8 #代码库统一使用utf-8 [i18n] commitencoding = utf-8 #log编码 [svn] pathnameencoding = utf-8 #支持中文路径
编辑
etc\git-completion.bash文件,在文件末尾增加以下内容:
alias ls='ls --show-control-chars --color=auto' #ls能够正常显示中文
编辑
etc\inputrc文件,修改
output-meta和
convert-meta属性值:
set output-meta on #bash可以正常输入中文 set convert-meta off
编辑profile文件,在文件末尾添加如下内容:
export LESSHARESET=utf-8
相关文章推荐
- 解决Windows Git Bash中文乱码问题
- git bash中文乱码问题解决办法
- 解决Windows Git Bash中文乱码问题
- windows下git bash中文乱码问题解决方法
- 发现问题 解决问题:gitbash 中文乱码
- 解决Windows Git Bash中文乱码问题
- 解决Windows Git Bash中文乱码问题
- 解决msysgit的shell环境(git-bash)中文输入乱码问题
- 解决windows下git bash 中文乱码问题
- Window上git bash命令行中文乱码问题解决方案
- windows git Bash 处理中文乱码问题
- 解决Windows Git Bash中文乱码问题
- Window上git bash命令行中文乱码问题解决方案
- git 中文乱码问题
- Windows下Git bash乱码问题
- git bash 中文乱码
- gitbash解决中文乱码
- git windows中文 乱码问题解决汇总
- git windows中文目录乱码问题解决
- 转:git windows中文 乱码问题解决汇总