windows下git bash中文乱码解决办法
2016-08-10 09:39
651 查看
git bash下中文乱码解决办法:
一.解决办法1:(直接上图)
1.在git bash下,右键 出现下图,选择options:
2.选择“Text”
3.将“Character set”设置为 UTF-8
二.解决办法2:(在上述办法1中,如果在git bash中,右键没有菜单的情况下)
进入git安装目录,通常是C:\Program Files (x86)\Git\
1. 编辑etc\gitconfig文件,在文件末尾增加以下内容:
[plain] view
plain copy
[gui]
encoding = utf-8 #代码库统一使用utf-8
[i18n]
commitencoding = utf-8 #log编码
[svn]
pathnameencoding = utf-8 #支持中文路径
2. 编辑etc\git-completion.bash文件,在文件末尾增加以下内容:
[plain] view
plain copy
alias ls='ls --show-control-chars --color=auto' #ls能够正常显示中文
3. 编辑etc\inputrc文件,修改output-meta和convert-meta属性值:
[plain] view
plain copy
set output-meta on #bash可以正常输入中文
set convert-meta off
4. 编辑profile文件,在文件末尾添加如下内容:
[plain] view
plain copy
export LESSHARESET=utf-8
一.解决办法1:(直接上图)
1.在git bash下,右键 出现下图,选择options:
2.选择“Text”
3.将“Character set”设置为 UTF-8
二.解决办法2:(在上述办法1中,如果在git bash中,右键没有菜单的情况下)
进入git安装目录,通常是C:\Program Files (x86)\Git\
1. 编辑etc\gitconfig文件,在文件末尾增加以下内容:
[plain] view
plain copy
[gui]
encoding = utf-8 #代码库统一使用utf-8
[i18n]
commitencoding = utf-8 #log编码
[svn]
pathnameencoding = utf-8 #支持中文路径
2. 编辑etc\git-completion.bash文件,在文件末尾增加以下内容:
[plain] view
plain copy
alias ls='ls --show-control-chars --color=auto' #ls能够正常显示中文
3. 编辑etc\inputrc文件,修改output-meta和convert-meta属性值:
[plain] view
plain copy
set output-meta on #bash可以正常输入中文
set convert-meta off
4. 编辑profile文件,在文件末尾添加如下内容:
[plain] view
plain copy
export LESSHARESET=utf-8
相关文章推荐
- 解决windows下git bash 中文乱码问题
- GitBash不支持中文(终端输出显示中文乱码)的简单解决办法(自测试Okay)
- 解决Windows Git Bash中文乱码问题
- git bash下中文乱码解决办法
- 解决Windows Git Bash中文乱码问题
- 解决Windows Git Bash中文乱码问题
- 解决Windows Git Bash中文乱码问题
- windows下git bash中文乱码问题解决方法
- git bash中文乱码问题解决办法
- windows下git bash中文乱码解决办法
- Windows 下gitbash 中文乱码的解决
- 解决Windows Git Bash中文乱码问题
- 解决msysgit的shell环境(git-bash)中文输入乱码问题
- 转:git windows中文目录乱码问题解决
- git windows中文 乱码问题解决汇总
- 解决Windows下Git中文乱码
- windows下git bash 乱码的问题解决
- Windows下Git-preview中文乱码的解决方法
- git windows中文目录乱码问题解决
- wordpress 上传附件中文文件名乱码解决办法(for Windows){转}