美文网首页
Git GUI 中文乱码

Git GUI 中文乱码

作者: MDZZ灭顶之灾12138 | 来源:发表于2018-07-09 15:47 被阅读77次

设置 Git 支持 utf-8 编码
在命令行下输入以下命令:

git config --global core.quotepath false # 显示 status 编码 git config --global gui.encoding utf-8 # 图形界面编码
git config --global i18n.commit.encoding utf-8 # 提交信息编码 git config --global i18n.logoutputencoding utf-8 # 输出 log 编码
$ export LESSCHARSET=utf-8

最后一条命令是因为 git log 默认使用 less 分页,所以需要 bash 对 less 命令进行 utf-8 编码

以上命令等效于:
在 etc\gitconfig 中添加
[core]
quotepath = false
[gui]
encoding = utf-8
[i18n]
commitencoding = utf-8
logoutputencoding = utf-8
在etc\profile 中添加
export LESSCHARSET=utf-8

参考

相关文章

  • Git GUI 中文乱码

    设置 Git 支持 utf-8 编码在命令行下输入以下命令: git config --global core.q...

  • Git使用一些总结

    首先下载安装git client 本说明包含如下内容: window git bash GUI 中文乱码问题 gi...

  • git配置

    Git配置 处理中文问题: 设置git gui的界面编码 git config --global gui.enco...

  • git 小技巧

    解决git status中文乱码问题

  • 简化git操作的gui软件整理

    1.tortorie git(海龟git)支持中文2.ungit gui git软件

  • Git Status 中文乱码解决

    Git Status 中文乱码解决 解决:$ git config --global core.quotepath...

  • Git初学习

    1. Git Bash中文乱码 Windows下运行Git Bash中文乱码有两种形式(两个只能解决一个),一种是...

  • git常用命令和常见问题

    基本命令 clear 清屏 source tree Git界面化工具 git log 中文显示乱码 git 解决 ...

  • git记录

    Git Magic图解gitgit 学习笔记git游戏(学习)1、消除文档路径中文乱码git config --g...

  • win10 powerShell 执行git log乱码的解决方

    问题描述: 输入git log时,在git bash里能正常显示中文,然而在powerShell里就会中文乱码,如...

网友评论

      本文标题:Git GUI 中文乱码

      本文链接:https://www.haomeiwen.com/subject/bthtpftx.html