解决windows下git bash 中文乱码问题
2017-03-08 20:36
856 查看
进入git安装目录,通常是C:\Program Files\Git\
1 编辑或者创建etc\gitconfig文件,在文件末尾增加以下内容:
2 编辑etc\git-completion.bash文件,在文件末尾增加以下内容:
3 编辑etc\inputrc文件,修改output-meta和convert-meta属性值:
4 编辑profile文件,在文件末尾添加如下内容:
5 在git bash 中右键找到text选项 设置编码为utf -8,如图:
1 编辑或者创建etc\gitconfig文件,在文件末尾增加以下内容:
[gui] encoding = utf-8 #代码库统一使用utf-8 [i18n] commitencoding = utf-8 #log编码 [svn] pathnameencoding = utf-8 #支持中文路径
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
5 在git bash 中右键找到text选项 设置编码为utf -8,如图:
相关文章推荐
- 解决Windows Git Bash中文乱码问题
- 解决Windows Git Bash中文乱码问题
- 解决Windows Git Bash中文乱码问题
- 解决Windows Git Bash中文乱码问题
- 解决Windows Git Bash中文乱码问题
- windows下git bash中文乱码问题解决方法
- windows下git bash 乱码的问题解决
- git bash中文乱码问题解决办法
- 解决windows下使用vc-git提交中文注释乱码的问题
- windows下git中sh.exe中文显示乱码问题解决
- 解决 GitHub For Windows 客户端软件中代码的中文显示乱码问题 (Git/GitHub)
- 解决Windows环境下Git Bash 不能输入中文的问题
- Windows 下gitbash 中文乱码的解决
- 解决windows gitk显示中文乱码问题
- 解决git在Windows下的乱码问题--解决代码从git 拉下来之后中文乱码的问题
- git windows中文目录乱码问题解决
- 转:git windows中文 乱码问题解决汇总
- windows git Bash 处理中文乱码问题
- git windows中文 乱码问题解决汇总
- 解决msysgit的shell环境(git-bash)中文输入乱码问题